-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
It seems like uglify-js does not support es6? #659
Comments
It's still not in, but you can follow #448 if you want |
This is the official uglify package for ES6/ES2015: |
Can anybody(@phoenixeliot) tell why there is a downvote for @Piusha, the answer worked for me? I was facing issue with webpack.optimize.UglifyJsPlugin for a simple code 10 ** 5. I got it working with uglifyjs-webpack-plugin . |
Anyone can downvote anything on github. It doesn't mean their opinion is necessarily correct.
|
Simple to me: UglifyJS does not support ES6 anymore from 2.0 as per the release notes. |
UglifyJS never supported es6 feature from master, all work on es6 and later was done on a separate branch or on separate projects. |
In case anybody else is as confused as I was an hour ago:
If you, like me, ever manually made an instance of |
Well, hell. I must have been pretty burned out by the time I wrote that because I had it right in my notes, and of course "terser" is a clever play on words while "tercer" means nothing. I'm really impressed I managed to get it wrong like 5 times, consistently, in that one post. 🤷♂️ |
Dashboard runs `gulp bundle` and can get in a state where ES6 code exists prior to that bundling. [Uglify does not handle ES6](mishoo/UglifyJS#659 (comment)), so we need to ensure that Babel transpiles it.
when I use generator, I got this error, will you support es6? Thank you.
The text was updated successfully, but these errors were encountered: