-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Comments
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) |
This was referenced Jan 5, 2017
This was referenced Jan 13, 2017
Repository owner
locked and limited conversation to collaborators
Jun 21, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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?
The text was updated successfully, but these errors were encountered: