Why lib-react.js is always loaded for Remote using @module-federation/enhanced/rspack? #3358
Unanswered
maitrungduc1410
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
in an MFE architecture, I have app-shell + MFE. Both of them have React.
I notice that for remote it always load
/static/js/lib-react.jseven I don't haveeager=truefor remote:The dependency is huge (300KB), I'm wondering why this is needed? because I think from app-shell React is already provided
My
rsbuild.config.tsfor remote:App shell
webpack.config.jsBeta Was this translation helpful? Give feedback.
All reactions