Webpack Uglify won't run on module as it is compiled as es6
jpgorman opened this issue ยท 7 comments
jpgorman commented
Currently this module can't be used in production with webpack as it is es6 and isn't supported by the webpack uglify module.
Can you compile the package to es5 first with either babel or something else, before building with webpack.
selfrefactor commented
Nice catch! Yes, I will do that.
selfrefactor commented
A clarification is needed - which file you need compiled - index.js
or webVersion.js
?
jeanpaulgorman commented
It's the compiled node file - index.js
selfrefactor commented
Version 0.7.3 should be now es2015
compatible. Please let me know if Uglify
still doesn't work.
jeanpaulgorman commented
Fantastic, I'll give it a try :)
selfrefactor commented
I am closing the issue, assuming that it works. Feel free to reopen it, if that is not the case.
jpgorman commented
Just tried it today (I've been away). Works a treat, thanks :) ๐