Skip to content

Commit f4fb242

Browse files
feat(enhanced): support shared module layers (#3276)
Co-authored-by: Hanric <hanric.zhang@gmail.com>
1 parent 39d7271 commit f4fb242

File tree

241 files changed

+20429
-4726
lines changed

Some content is hidden

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

241 files changed

+20429
-4726
lines changed

.changeset/ai-hungry-bear.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@module-federation/enhanced": minor
3+
---
4+
5+
Enhancements to layer handling in module federation tests and configuration.
6+
7+
- Introduced new layer configurations to support more nuanced federation scenarios that consider multiple layers of dependency.
8+

.changeset/ai-sleepy-fox.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@module-federation/enhanced": patch
3+
---
4+
5+
Refactored module sharing configuration handling.
6+
7+
- Simplified plugin schema for better maintainability
8+
- Improved layer-based module sharing test coverage
9+
- Removed redundant plugin exports

.changeset/ai-sleepy-tiger.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@module-federation/runtime": minor
3+
---
4+
5+
- Added a new property 'layer' of type string or null to SharedConfig.

.changeset/brown-badgers-fetch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/enhanced': minor
3+
---
4+
5+
support request option on ConsumeSharePlugin. Allows matching requests like the object key of shared does

.changeset/rotten-bears-trade.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@module-federation/webpack-bundler-runtime': minor
3+
'@module-federation/runtime-core': minor
4+
'@module-federation/enhanced': minor
5+
'@module-federation/managers': minor
6+
'@module-federation/sdk': minor
7+
'@module-federation/nextjs-mf': patch
8+
---
9+
10+
Support share layers and multiple share scopes

.changeset/shy-snails-battle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/enhanced': minor
3+
---
4+
5+
Layer support for Provide Share Plugin

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# dependencies
1111
node_modules
1212
./webpack-lib
13+
next.js
1314
# IDEs and editors
1415
/.idea
1516
.project
@@ -71,4 +72,6 @@ packages/enhanced/test/js
7172
!apps/rslib-module/@mf-types/**
7273

7374
**/vite.config.{js,ts,mjs,mts,cjs,cts}.timestamp*
74-
/webpack-lib/
75+
76+
# Federation
77+
**/.federation

apps/next-app-router/next-app-router-4000/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"name": "app-router-4000",
23
"private": true,
34
"scripts": {
45
"build": "next build",

apps/next-app-router/next-app-router-4000/prettier.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ module.exports = {
55
singleQuote: true,
66
// pnpm doesn't support plugin autoloading
77
// https://github.com/tailwindlabs/prettier-plugin-tailwindcss#installation
8-
// plugins: ['prettier-plugin-tailwindcss'],
8+
plugins: ['prettier-plugin-tailwindcss'],
99
};

apps/next-app-router/next-app-router-4001/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"private": true,
3+
"name": "app-router-4001",
34
"scripts": {
45
"build": "next build",
56
"dev": "NEXT_PRIVATE_LOCAL_WEBPACK=true next dev -p 4001",

0 commit comments

Comments
 (0)