We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用react^16.8.4 版本的hooks api, 压缩打包生产环境代码. 报错! 如图:
webpack官方的issue 发现问题是 uglifyjs-webpack-plugin 的bug导致, 具体情况如下: mishoo/UglifyJS#3291
官方建议切到terser plugin (https://github.com/webpack-contrib/terser-webpack-plugin), 解决问题.
为什么选择terser? terser官方解释: uglify-js 不支持ES6+, uglify-es也不再维护.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🍉what?
使用react^16.8.4 版本的hooks api, 压缩打包生产环境代码. 报错!
如图:
📦why?
webpack官方的issue
发现问题是 uglifyjs-webpack-plugin 的bug导致, 具体情况如下:
mishoo/UglifyJS#3291
🔑how to fix?
官方建议切到terser plugin (https://github.com/webpack-contrib/terser-webpack-plugin), 解决问题.
🚀orther
为什么选择terser?
terser官方解释: uglify-js 不支持ES6+, uglify-es也不再维护.
The text was updated successfully, but these errors were encountered: