Skip to content

Commit 269d3de

Browse files
chore: update docs on hoisted runtime
1 parent 9c81bb6 commit 269d3de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/website-new/docs/en/configure/experiments.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ new ModuleFederationPlugin({
3131

3232
### `Hoisted` Runtime
3333

34-
When Runtime is `hoisted` the following happens:
34+
When the runtime is `hoisted`, the following occurs:
3535

36-
This is useful configurations that need:
37-
- runtimeChunk: single
38-
- no `import()` in the user code
39-
- the runtime packages of module federation are moved into the runtime chunks and out of the entrypoint.
36+
These configurations are useful for:
4037

38+
- Setting or using`runtimeChunk: 'single'`.
39+
- Avoiding the `import()` at the top of the app or in the entry point of user code to prevent eager consumption errors. In the past, this was often mandatory and commonly seen as `import('./bootstrap.js')` in example apps.
40+
- Moving the Module Federation runtime packages into runtime chunks, keeping them out of the entry point - reducing code duplication
4141

4242
1) Optimizations
4343

0 commit comments

Comments
 (0)