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

The Code is in ES6 - Uglify can't handle ES6 code #72

Open
RALifeCoach opened this issue Jul 8, 2020 · 1 comment
Open

The Code is in ES6 - Uglify can't handle ES6 code #72

RALifeCoach opened this issue Jul 8, 2020 · 1 comment

Comments

@RALifeCoach
Copy link

I get the following error running uglify:
ERROR in vendor-2dec535e94d383047c4d.js from UglifyJs
Unexpected token: keyword «const» [vendor-2dec535e94d383047c4d.js:67757,2]

@swiftone
Copy link
Contributor

According to https://www.npmjs.com/package/uglify-js you can use Babel to transpile the code to something uglify can handle. Did you have questions on using Babel?

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