-
Notifications
You must be signed in to change notification settings - Fork 154
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
Unexpected token: keyword (const) #352
Comments
gulp uglify uses node 4 - const/let is a knowen error of node below 5.3.0 - issue could be resolved by update node dependencie |
Adding |
My $ node -v
v12.18.1 My $ yarn list --pattern=gulp
yarn list v1.22.4
......
├─ gulp@4.0.2
...... My $ yarn list --pattern=gulp-uglify
yarn list v1.22.4
└─ gulp-uglify@3.0.2 |
For anyone finding this through Google, this project is dead. The replacement is gulp-terser which supports modern JS features. It's basically a drop-in replacement - install it, add |
This project is not dead. It still supports UgliftyJS, and the many forks of UgliftyJS, some of which are mentioned above. It will continue to adapt to continue working with future releases of UgliftyJS and Node.js |
Oh, apologies. UglifyJS is dead though, it doesn't support any JS from the past 5 years. And the version that supposedly replaced it (uglify-es) explicitly states to use terser instead. So the OP won't solve their problem with this plugin. But a huge thanks from me for making this plugin, it's served me well for many years :) |
You can use this plugin with terser, as shown on the README. At least it worked the last time I tried. |
Getting the following error while using uglify
The text was updated successfully, but these errors were encountered: