-
-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
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
Infinite loop for specific case of Module Federation #926
Comments
technically this will not work anyway.. css should be extracted.. |
Can you explain why you set to |
This is just a repository I've created to reproduce the bug and discuss a solution, the bug we're facing happens in a far more bigger project than the one provided and is far more complex. I've only reduced it to something simpler and lighter so we can debug easily. @alexander-akait I've just set to @vankop I'm not sure I understand what you mean by css should be extracted? I understand that this is a really specific edge case that may not concern a lot of people but as far as I understand the options we're using I think I have a good understanding of why it's happening and I'm willing to contribute with a PR like the code I've proposed above but for some reason something is still missing. If you know why after removing the ModuleFederationPlugin from the child compilation it still tries to import the |
Bug report
Actual Behavior
The build enters an infinite loop, the child compilation calling itself in a recursive way.
Expected Behavior
The compilation should finish
How Do We Reproduce?
I've created a repository with a basic project that reproduces the bug.
It happens when we use both:
experimentalUseImportModule
tofalse
for Mini Css Extract Plugin (see in webpack.config.js)The problem is due to the child compiler copying the configuration of the parent compilation including ModuleFederation plugin with the explicit
import
on shared library.I've removed the Module Federation plugin from the child compilation but it seems there is still something to be removed
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: