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
fix:13797 Pass shareScope to ContainerPugin via ModeuleFederationPlugin #13819
fix:13797 Pass shareScope to ContainerPugin via ModeuleFederationPlugin #13819
Conversation
For maintainers only:
|
@meetdheeraj The most important CI builds failed. This way your PR can't be merged. Please take a look at the CI results from azure (1 errors / 0 warnings) and appveyor (success) and fix these issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway can you add test case to avoid future regressions
hello, do you fix the problem ? i see it can't pass the test now? |
i am so sad, who can fixed this problem? shareScope not pass in ContainerPlugin, this will cause when init one remote container all the containers init. this happen in when you new mutil ModeuleFederationPlugin |
|
@meetdheeraj Can you accept CLA? |
@alexander-akait @TheLarkInn We can close this one too. It was fixed in #16031, I'm adding a test case for the same in #16943 |
This is to resolve #13797
This enables
ModuleFederationPlugin
to pass theshareScope
prop down toContainerPlugin
which already knows how to handle it further.Motivation
My office is currently discussing Microfrontends and various alternatives to implement the same. Webpack ModuleFederation was one of the option being discussed. Since ModuleFederation is fairly new, I had my doubts if we could use this and rely on it for our usecase. And so I was trying to read as much about it as I can. During this, I was also checking issues people were facing while using it which led me to #13797 which seemed like a crucial but easy to fix bug.
While that's how I came across this, this is my first commit to a open, community driven and public repository. So I'm bit on my nerves raising this PR. Do help me if I'm missing on any tradition. Thanks.
What kind of change does this PR introduce?
Bigfix for issue #13797 wherein ModuleFederationPlugin was not passing down options.shareScope to ContainerPlugin.
Since ContainerPlugin already accepts and handles
shareScope
as required, no extra changes required on top of it.Did you add tests for your changes?
This does not appear to require any. I ran all existing tests post my changes. Do advice if tests are still needed.
Does this PR introduce a breaking change?
Hopefully not.
What needs to be documented once your changes are merged?
Ideally, nothing. This just adds what was expected already.