Replies: 1 comment 9 replies
-
Hi, there is a comparison in the Rsbuild documentation, you can refer to: https://rsbuild.dev/guide/advanced/module-federation#how-to-use |
Beta Was this translation helpful? Give feedback.
9 replies
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.
-
Hi, I would like to know if rsbuild moduleFederation.options is eventually going to be the same as using
@module-federation/enhanced/rspack
?Currently, I have noticed that there are two guides:
@module-federation/enhanced/rspack
https://module-federation.io/guide/start/quick-start.html#3-exporting-modules-by-the-producerrsbuild moduleFederation.options
: https://module-federation.io/practice/frameworks/react/index.htmlOn the module federation options page in rsbuild (https://rsbuild.dev/config/module-federation/options), it says:
However, the quick start guide (https://module-federation.io/guide/start/quick-start.html#4-starting-the-producer) does not do any of these. Are these steps not required when using
@module-federation/enhanced/rspack
?CC @chenjiahan in case you know (not really sure if this question should be in
rsbuild
repo or here)(I have also noticed that https://rsbuild.dev/config/module-federation/options is way faster than
@module-federation/enhanced/rspack
. In the basic examples, updating the provider takes 0.01s vs. 0.80s with the enhanced plugin. For larger app, it's much slower (some ms for rsbuild module federation options vs. 2-3s for the enhanced plugin)Beta Was this translation helpful? Give feedback.
All reactions