PSA: Next version of UglifyJS and ecosystem
See original GitHub issueSummary:
-
uglifyjs-webpack-plugin
orwebpack.optimize.UglifyJsPlugin
will be upgraded to1.0.x
in a week and usesuglify-js@3/uglify-es
-
uglify-js@3
is not backward compatible touglify-js@2
, to which the latter is used in current upstream version (0.4.6) ofuglifyjs-webpack-plugin
New features:
- (Uglify-Es) ES6+ minification
- (uglifyjs-webpack-plugin) UglifyJS parallelization (!)
- (uglifyjs-webpack-plugin) Selective minification (you can include/exclude files to minify)
https://github.com/mishoo/UglifyJS2/tree/harmony https://github.com/webpack-contrib/uglifyjs-webpack-plugin
Currently in beta or prerelease stage, will be upstreamed sooner or later.
Code impacted: #1
Related:
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
uglify-js - npm
JavaScript parser, mangler/compressor and beautifier toolkit. Latest version: 3.17.4, last published: 2 months ago. Start using uglify-js in ...
Read more >تويتر \ Webpack Contrib (WebpackContrib@) - Twitter
Reminder: Version 8.x for #nodejs goes LTS next week. If you are using 4.x, it's a good time to migrate. ١٣. ٢٢. أعادت...
Read more >Webpack VS DomainLockJS - compare differences & reviews?
Atera offers remote IT monitoring & management (RMM), PSA, remote access, ... Next.js is a web development framework based on React.js, Node.js, webpack, ......
Read more >React Tutorial: Cloning Yelp | Hacker News
This is not a tutorial on the basics of React -- this is written from the perspective of a large production level application....
Read more >uglifyjs-webpack-plugin - npm package - Snyk
An important project maintenance signal to consider for uglifyjs-webpack-plugin is that it hasn't seen any new versions released to npm in the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Turns out the way to fix this is to use the comment suggestion by @rwieruch https://github.com/zeit/next.js/issues/1195#issuecomment-326901737
A newer Uglify fixed it. I’m guessing because the current Uglify bundled doesn’t support the new ES6 syntax fully, therefore it bugged out.
@pencilcheck Purge .next/ folder and node_modules then try building the project again.