Skip to content

fix hrm error when works with Module federation#15542

Merged
sokra merged 7 commits into
webpack:mainfrom
wangjinyang:bugfix/mf-hmr-error
Apr 4, 2022
Merged

fix hrm error when works with Module federation#15542
sokra merged 7 commits into
webpack:mainfrom
wangjinyang:bugfix/mf-hmr-error

Conversation

@wangjinyang

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?
fixes #15534

Did you add tests for your changes?
no

Does this PR introduce a breaking change?
no

What needs to be documented once your changes are merged?
no

@webpack-bot

Copy link
Copy Markdown
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@wangjinyang wangjinyang changed the title Module federation Throw Error worked with HMR When Compile A Async Chunk fix hrm error when works with Module federation Mar 18, 2022

@sokra sokra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks good. Only a nitpick is to get the name of the property from the constants.

Comment thread lib/container/RemoteRuntimeModule.js Outdated
Comment thread lib/container/RemoteRuntimeModule.js Outdated
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
@webpack-bot

Copy link
Copy Markdown
Contributor

@wangjinyang Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@sokra Please review the new changes.

@sokra sokra merged commit 2a58ce7 into webpack:main Apr 4, 2022
@sokra

sokra commented Apr 4, 2022

Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hrm throw error when works with Module federation

3 participants