Uglifyjs: Question : is UglifyJS2 ready to minify es2015+ code ?

Created on 6 Dec 2016  路  3Comments  路  Source: mishoo/UglifyJS

I have a valid es2015+ js file that compiles just fine. I tried
uglifyjs all.js --mangle --compress --screw-ie8 --verbose --lint --output all.min.js

and I get "SyntaxError: Unexpected token: name (ui) Error ..."

at line

let ui;

Most helpful comment

Use the experimental uglify harmony branch to minify ES6/ES2015:

npm install mishoo/UglifyJS2#harmony

See: #448

All 3 comments

Use the experimental uglify harmony branch to minify ES6/ES2015:

npm install mishoo/UglifyJS2#harmony

See: #448

great, you should add this information in the readme

great, you should add this information in the read me

document pull request welcome

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neverfox picture neverfox  路  4Comments

buu700 picture buu700  路  5Comments

alexlamsl picture alexlamsl  路  5Comments

Jimbly picture Jimbly  路  4Comments

PinkyJie picture PinkyJie  路  3Comments