Replies: 1 comment
-
I have a similar issue. I was able to get hmr working when using nx and dynamic module federation with webpack. Once I changed the bundler to rsPack the hmr only works for the shell app. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been generated the example by
nx g @nx/react:host --name=host --directory=apps --remotes=remote1 --dynamic=true
Then I use
nx run host:serve:development --devRemotes=remote1
to start.When I change remote1 and save, I can see, the running console is building and the browser console have hmr log printed. But the web page not refresh.
And if I change
loadRemoteModule
back toimport()
in remote1 then everything is working fine.loadRemoteModule is import form
import { loadRemoteModule } from "@nx/react/mf";
Is the dynamic federation react is not support hmr ? If I want to development the remote, how can i do ?
Beta Was this translation helpful? Give feedback.
All reactions