HMR in Module Federation #2802
|
In the Steps:
=> The button is not updated on the page |
Answered by
chenjiahan
Jul 10, 2024
Replies: 2 comments 11 replies
|
Hi, you can refer to this issue: module-federation/core#2459 |
11 replies
|
HMR isn’t working in my setup. The host app uses the rolldown-vite bundler and loads remote apps through the @module-federation/runtime plugin. The remote app is built using Rsbuild, but HMR isn’t reflecting updates. I can see the hot-update.js request in the network tab, but the latest code changes aren’t being applied or rendered in the UI. I tried webpack bundler for remoteApp, in that case, HMR is working fine. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I just released https://github.com/web-infra-dev/rsbuild/releases/tag/v1.0.0-alpha.7 to fix the Module Federation HMR.
Now Rsbuild will set
dev.client.portandtools.rspack.output.uniqueNameto ensure HMR can work with remote modules.