You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uglifyjs-webpack-plugin 1.x (the version we use) uses uglify-es, which is no longer maintained. uglifyjs-webpack-plugin 2.x uses uglify-js again. We can't upgrade to this version because it'll fail on ES6 syntax, and such things shouldn't be hardcoded.
So the most promising option is to migrate to terser-webpack-plugin, which uses terser, which is a fork of unmaintained uglify-es. Both seem to be actively maintained.
We can use cache option to increase performance. Other options may be useful too.
Are there any alternatives I've missed?
Please send a pull request to the next branch.
The text was updated successfully, but these errors were encountered:
## Breaking changes
### Drop webpack 3 support
Webpack 3 is no longer supported, webpack 4 is the minimum required version.
As a side effect you shouldn’t see any webpack warnings when you run Styleguidist.
We’ve also replaced no longer maintainer uglify-es with Terser to minify production JavaScript bundle.
* #1175, #1178 by @derz
* #1165 by @elevatebart
* #1148 by @elevatebart
* #915, #1023 by @stepancar
* #1180 by @AndreyGladkov
uglifyjs-webpack-plugin 1.x (the version we use) uses uglify-es, which is no longer maintained. uglifyjs-webpack-plugin 2.x uses uglify-js again. We can't upgrade to this version because it'll fail on ES6 syntax, and such things shouldn't be hardcoded.
So the most promising option is to migrate to terser-webpack-plugin, which uses terser, which is a fork of unmaintained uglify-es. Both seem to be actively maintained.
We can use cache option to increase performance. Other options may be useful too.
Are there any alternatives I've missed?
Please send a pull request to the
next
branch.The text was updated successfully, but these errors were encountered: