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

ES6 classes fail to uglify #38

Closed
themre opened this issue Nov 25, 2017 · 2 comments
Closed

ES6 classes fail to uglify #38

themre opened this issue Nov 25, 2017 · 2 comments

Comments

@themre
Copy link

themre commented Nov 25, 2017

Hi,
I'm trying to uglify one lib and it's failing to uglify, probably due to ES6 syntax. Can anyone confirm if this is an issue with ES6 class or something else? Cannot get more info, pretty new with rollup. The error is this:
[!] (uglify plugin) Error: Error transforming bundle with 'uglify' plugin: Unexpected token: name (NumberUtil)

More info can be found here: geoman-io/leaflet-geoman#255 (comment)

@TrySound
Copy link
Owner

@themre this plugin uses uglify-js version (which do not support es6). There's a big section about this in readme https://github.com/TrySound/rollup-plugin-uglify#warning

@themre
Copy link
Author

themre commented Nov 25, 2017

Great,thanks! Sorry for spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants