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

Arrow functions are not compatible with UglifyJS or IE11 #70

Closed
cveilleux opened this issue Dec 22, 2016 · 1 comment
Closed

Arrow functions are not compatible with UglifyJS or IE11 #70

cveilleux opened this issue Dec 22, 2016 · 1 comment

Comments

@cveilleux
Copy link

The latest 4.0.0 release uses arrow functions but that is not quite ready for prime time.

http://caniuse.com/#feat=arrow-functions

Also, UglifyJS does not support arrow functions.

We bundle our javascript with Webpack and use UglifyJS to minify our final bundle. The 4.0 release breaks because of the arrow functions.

Progress is good and tolling support for arrow function will get more and more widespread, but I suggest may be adding a warning on the 4.0 release / branch that some users might prefer to stay on the 3.x branch?

@sindresorhus
Copy link
Owner

sindresorhus commented Dec 22, 2016

Nah, the main target is Node.js and I'm not interested in having a compile step. Up to you to transpile if you want it in the browser. See: sindresorhus/ama#446 (comment)

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