Why bundle size of remoteEntry.js is so big? #3359
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.
-
This is my
rsbuild.config.ts
for a React remote:as shown above it exposes
./src/loader.ts
. This is the loader file:My
App.tsx
component:it's pretty simple.
at run time this is what I have:
as you can see, the
remoteEntry.js
of React (rsbuild) very big compare to Angular (Webpack - ModuleFederationPlugin) and Vue (Vite - @module-federation/vite):The reason is, bigger remoteEntry.js leads to slower MFE loading. Let say for Vue remoteEntry.js above is just 1KB, and I can implement my own async loading strategy to improve its sub resources loading time
Beta Was this translation helpful? Give feedback.
All reactions