I'm happy to use this package in my project, but I have problem with UglifyJsPlugin. UglifyJsPlugin can only uglify ES5 code but Your code is written in ES6. You should deliver ES5 code if You are pushing it to NPM.
My temporary solution is to config webpack like this:
Hi,
I'm happy to use this package in my project, but I have problem with
UglifyJsPlugin
.UglifyJsPlugin
can only uglify ES5 code but Your code is written in ES6. You should deliver ES5 code if You are pushing it to NPM.My temporary solution is to config webpack like this:
But please, add ES5 code to dist or lib folder.
https://stackoverflow.com/questions/29738381/how-to-publish-a-module-written-in-es6-to-npm https://booker.codes/how-to-build-and-publish-es6-npm-modules-today-with-babel/