question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin may not work in webpack 5

See original GitHub issue

webpack 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:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sanex3339commented, Oct 14, 2020

For @4 i’ll publish version 2.6.0.

0reactions
sanex3339commented, Oct 14, 2020

Need more tests of 3.0.0-beta.0 version. If everything will be ok, I release a stable version in a few days.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found