Plugin may not work in webpack 5
See original GitHub issuewebpack 5 is due to be released pretty shortly; this plugin works fine in webpack 5 at the moment but may not in the future due to deprecations in the API. Running the plugin shows me:
(node:90055) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
(Use `node --trace-deprecation ...` to show where the warning was created)
Because the obfuscator plugin appears to be modifying the assets directly. I don’t know quite enough about webpack to know what all is involved.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
[Webpack 5] Module Federation plugin does not work #186
This probably means the current plugin is trying to preserve module name even in module federation build. To fix this, we will need...
Read more >Upgrade to Webpack 5 failing - node.js - Stack Overflow
I am attempting upgrade to Webpack 4 to Webpack 5. However when I run npm start I get this error. Funny thing is...
Read more >To v5 from v4 - webpack
This guide aims to help you migrating to webpack 5 when using webpack directly. If you are using a higher level tool to...
Read more >webpack Tutorial: How to Set Up webpack 5 From Scratch
Now Babel is set up, but our Babel plugin is not. You can demonstrate it not working by adding an example pre-Babel code...
Read more >Webpack 5 Full Project Setup - YouTube
If you use `contentBase`, like I do in the video, you'll get an error. You can either use ` webpack -dev-server` ^3.11.0 (which...
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
For @4 i’ll publish version
2.6.0
.Need more tests of
3.0.0-beta.0
version. If everything will be ok, I release a stable version in a few days.