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;
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
Most helpful comment
Use the experimental uglify harmony branch to minify ES6/ES2015:
See: #448