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.js
even I don't haveeager=true
for 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.ts
for remote:App shell
webpack.config.js
Beta Was this translation helpful? Give feedback.
All reactions