njwt icon indicating copy to clipboard operation
njwt copied to clipboard

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

Open RALifeCoach opened this issue 5 years ago • 1 comments

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

RALifeCoach avatar Jul 08 '20 20:07 RALifeCoach

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?

swiftone avatar Jul 22 '20 20:07 swiftone