Skip to content

Commit fce107e

Browse files
authoredMar 11, 2025··
feat(enhanced): make hoisted runtime the default implementation (#3453)
1 parent b0e7c8c commit fce107e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1696
-1977
lines changed
 

‎.changeset/ai-eager-lion.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"@module-federation/enhanced": minor
3+
---
4+
5+
Enhanced module federation plugin to remove the `federationRuntime` experiment and replace it with `asyncStartup`.
6+
7+
- Dropped support for `federationRuntime` experiment and introduced `asyncStartup` to enable asynchronous container startup.
8+
- Refactored EmbedFederationRuntimePlugin for improved runtime embedding and startup management.
9+
- Added options to enable runtime embedding for all chunks.
10+
- Integrated measures to ensure proper initialization and avoid duplicate hooks.
11+
- Simplified constructor and class dependencies by removing the `experiments` parameter.
12+
- Revised schema and validation definitions to accommodate new asynchronous startup configurations.
13+
- Updated test cases to reflect the change from `federationRuntime` to `asyncStartup`.

‎.changeset/ai-happy-bear.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@module-federation/nextjs-mf": patch
3+
---
4+
5+
- Changed experiment configuration from `federationRuntime: 'hoisted'` to `asyncStartup: true`.
6+
- Improved initialization logic in the runtime module to enable better caching and startup handling.

0 commit comments

Comments
 (0)
Please sign in to comment.