-
-
Notifications
You must be signed in to change notification settings - Fork 90
Can't work with old webpack uglify plugin? #65
Comments
Is probably related to #63, but yea, would be better if you can update your stack to support ES6. It's kinda strange that you would go with a bleeding edge like React Hooks, but would be still requiring ES5 😕 Alternatively you can try a new and maintained minifier Terser. I am not sure if it has parallel webpack plugin though. |
I didn't think too much because react hook is fully backwards-compatible. I use webpack 3+ and can't use terser-webpack-plugin,so its kinda embarrassed... I guess it's time to upgrade webpack to 4+ |
Yea, this package is meant for like a future proof stacks. Please do try an update and if it turns out impossible, you would need to wait (or contribute) for #63 to get fixed. I will close this now and subscribe there, please. |
uglify can not work with es6. It only support es5. First you should compile the module to es5, then uglify it. |
The build version of this package has es6 syntax,but i use webpack-parallel-uglify-plugin,so it breaks my app. Do I have to upgrade my uglify plugin or config my babel-loader to transpile it first?
The text was updated successfully, but these errors were encountered: