HMR in Module Federation #2802
-
|
In the Steps:
=> The button is not updated on the page |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
|
Hi, you can refer to this issue: module-federation/core#2459 |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
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.