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

ES2015 arrow function not transpiled #4

Closed
enoh-barbu opened this issue Sep 27, 2017 · 1 comment
Closed

ES2015 arrow function not transpiled #4

enoh-barbu opened this issue Sep 27, 2017 · 1 comment

Comments

@enoh-barbu
Copy link

enoh-barbu commented Sep 27, 2017

I don't know if this is a babel issue or you should use functions instead of arrow functions because I get an error on old browsers that don't support the new syntax: SyntaxError: Unexpected token '>'

preview

as well const declarations

@enoh-barbu enoh-barbu changed the title es2015 arrow function not transpiled ES2015 arrow function not transpiled Sep 27, 2017
@SamVerschueren
Copy link

We aim for Node.js, not the browser. You can find a more detailed explanation here sindresorhus/ama#446.

If you use Webpack, check out babel-engine-plugin, which transpiles only the dependencies that needs to be transpiled.

Repository owner locked and limited conversation to collaborators Sep 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants