Skip to content

Commit 30440b1

Browse files
chore: create patch
1 parent a0ca93f commit 30440b1

32 files changed

+1724
-949
lines changed

.changeset/dirty-owls-pretend.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@module-federation/nextjs-mf': patch
3+
'@module-federation/enhanced': patch
4+
'@module-federation/node': patch
5+
---
6+
7+
Fallback to unlayered share if no layer match exists

.vscode/launch.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": []
4+
}

apps/3000-home/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

apps/3000-home/next.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1-
const { withNx } = require('@nx/next/plugins/with-nx');
21
const NextFederationPlugin = require('@module-federation/nextjs-mf');
32

4-
/**
5-
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
6-
**/
73
const nextConfig = {
8-
nx: {
9-
// Set this to true if you would like to to use SVGR
10-
// See: https://github.com/gregberge/svgr
11-
svgr: false,
12-
},
134
webpack(config, options) {
145
const { isServer } = options;
156
config.watchOptions = {
@@ -68,4 +59,4 @@ const nextConfig = {
6859
},
6960
};
7061

71-
module.exports = withNx(nextConfig);
62+
module.exports = nextConfig;

apps/3000-home/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@
77
"antd": "5.19.1",
88
"lodash": "4.17.21",
99
"next": "15.4.0",
10-
"react": "19.1.0"
10+
"react": "19.1.0",
11+
"react-dom": "19.1.0",
12+
"webpack": "5.99.9"
1113
},
1214
"devDependencies": {
1315
"@module-federation/nextjs-mf": "workspace:*",
14-
"@module-federation/runtime": "workspace:*",
15-
"@module-federation/utilities": "workspace:*"
16+
"@module-federation/runtime": "latest"
1617
},
1718
"scripts": {
1819
"start": "next start",
20+
"dev": "NEXT_PRIVATE_LOCAL_WEBPACK=true next dev",
1921
"build": "pnpm exec next telemetry disable && NEXT_PRIVATE_LOCAL_WEBPACK=true next build"
2022
}
2123
}

apps/3000-home/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../../tsconfig.base.json",
2+
"extends": "../../../tsconfig.base.json",
33
"compilerOptions": {
44
"target": "es2017",
55
"jsx": "preserve",

apps/3001-shop/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

apps/3001-shop/next.config.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
const { withNx } = require('@nx/next/plugins/with-nx');
21
const NextFederationPlugin = require('@module-federation/nextjs-mf');
3-
/**
4-
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
5-
**/
2+
63
const nextConfig = {
7-
nx: {
8-
// Set this to true if you would like to to use SVGR
9-
// See: https://github.com/gregberge/svgr
10-
svgr: false,
11-
},
124
webpack(config, options) {
135
const { isServer } = options;
146
config.watchOptions = {
@@ -54,4 +46,4 @@ const nextConfig = {
5446
},
5547
};
5648

57-
module.exports = withNx(nextConfig);
49+
module.exports = nextConfig;

apps/3001-shop/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
"antd": "5.19.1",
88
"lodash": "4.17.21",
99
"next": "15.4.0",
10-
"react": "19.1.0"
10+
"react": "19.1.0",
11+
"react-dom": "19.1.0"
1112
},
1213
"devDependencies": {
1314
"@module-federation/nextjs-mf": "workspace:*",
1415
"@module-federation/runtime": "workspace:*",
15-
"@module-federation/sdk": "workspace:*",
16-
"@module-federation/utilities": "workspace:*"
16+
"@module-federation/sdk": "workspace:*"
1717
},
1818
"scripts": {
19+
"dev": "NEXT_PRIVATE_LOCAL_WEBPACK=true next dev",
1920
"start": "next start",
2021
"build": "NEXT_PRIVATE_LOCAL_WEBPACK=true next build"
2122
}

apps/3001-shop/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../../tsconfig.base.json",
2+
"extends": "../../../tsconfig.base.json",
33
"compilerOptions": {
44
"target": "es2017",
55
"jsx": "preserve",

0 commit comments

Comments
 (0)