-
Notifications
You must be signed in to change notification settings - Fork 155
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
Does not work with uglify-es? #287
Comments
Just saw this - perhaps this is caused by this: mishoo/UglifyJS#1907 |
@davistan Probably. You'll be able to use it after we release a beta supporting v3 of UglifyJS. |
Noted. Thanks!
|
I hope you include these fixes ASAP. Thank you. |
I faced same problem and solved this problem. I can solve this problem to downgrade # Delete uglify-js@3.0.x
$ npm uninstall uglify-js --save-dev
# Re-install that plugin v2.8.10 version
$ npm install uglify-js@2.8.10 --save-dev |
@KennethanCeyer if you're not using a specific version of UglifyJS, you don't have to install it: by default you'll get the latest version of UglifyJS2 and you can use the normal import. |
I understand and now checked I had mistake, i installed I hope this comment will be helped who have faced same error. |
@KennethanCeyer for me that wasn't the full solution as it would disable me from using ES6 features. I had to install uglify-js on this specific commit: Hope this helps for ES6 users out there :) |
@diasdavid If you install from my "three" branch, you can use |
thanks @terinjokes. I'll keep posted :) |
@terinjokes Today, i use uglify-js@3.0 that has a feature {ie8:true}.But, gulp-uglify unsupport this property.because gulp-uglify property {fromString:true} that uglify-js@3.0 unsupport! |
@gluttonman you can install an alpha version of gulp-uglify@3 from the "three" git branch. |
@terinjokes thank you! |
Hi, I've just tried to process a ES6 file using uglify-es.
The same file running on
uglifyjs
CLI works but using the minifier will produce error.Using pump, produces error below:
Caused by: TypeError: Cannot read property 'replace' of undefined
Hope this can be fixed easily.
Thanks in advance.
The text was updated successfully, but these errors were encountered: