The experiments
configuration is used to enable experimental capabilities in the plugin.
boolean
false
When asyncStartup
is enabled, all Module Federation entrypoints will initialize asynchronously by default. This means:
import()
statements at the top of your app (e.g., import('./bootstrap')
)When using this mode, all entrypoints will initialize asynchronously. If you're manually requiring a bundled entrypoint or exposing a UMD library, it will return a promise resolving to the exports.
boolean
false
After setting true
, the external MF runtime will be used and the runtime provided by the consumer will be used. (Please make sure your consumer has provideExternalRuntime: true
set, otherwise it will not run properly!)
boolean
false
Make sure to only configure it on the topmost consumer! If multiple consumers inject runtime at the same time, the ones executed later will not overwrite the existing runtime.
Setting true
will inject the MF runtime at the consumer.