jwtk / njwt

Node.js JWT support
Apache License 2.0
432 stars 49 forks source link

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

Open RALifeCoach opened 4 years ago

RALifeCoach commented 4 years ago

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

swiftone commented 4 years ago

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?