-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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: use runtime globals in shared plugin #12831
fix: use runtime globals in shared plugin #12831
Conversation
- Fixes a bug that caused HMR to fail when using Module Federation (__webpack_modules__ is not defined).
For maintainers only:
|
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.
Changes look good, but we definitely need a test case for the bug
and also make sure to sign the CLA |
Yep, a test case in To trigger both code paths you need on shared module that it loaded with |
Will do.
I should be able to get something up here in the next few days. Appreciate the direction. |
@sokra 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 / 3 warnings) and appveyor (error) and fix these issues. |
4cec47d
to
cf57a14
Compare
What kind of change does this PR introduce?
__webpack_modules__
is not defined).Did you add tests for your changes?
I didn't, it would be great if some direction could be given as to where a test for something like this would go. Assuming
hotCases
?Does this PR introduce a breaking change?
It doesn't introduce breaking changes.
What needs to be documented once your changes are merged?
This is an internals change, I don't believe this warrants a documentation change.