Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES6 & standardJS syntax #63

Open
mesqueeb opened this issue Dec 6, 2019 · 1 comment
Open

ES6 & standardJS syntax #63

mesqueeb opened this issue Dec 6, 2019 · 1 comment

Comments

@mesqueeb
Copy link

mesqueeb commented Dec 6, 2019

I'd love an option to render functions in modern ES6 and standardJS syntax.

Eg. instead of

const echo = function (arg) { return arg; }

I'd want

const echo = arg => arg

standardJS is about small details like single vs double quotes, no semicolons, etc.

@okuryu
Copy link
Collaborator

okuryu commented Dec 7, 2019

I don't think it's serialize-javascript's role to rewrite the syntax. You would be better to pass your source code written in the syntax you want to serialize?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants