Skip to content

Commit 66270bb

Browse files
fix(nextjs-mf): fix next 14 loader rules (#2149)
Co-authored-by: ScriptedAlchemy <[email protected]>
1 parent fc3c3cd commit 66270bb

File tree

6 files changed

+153
-26
lines changed

6 files changed

+153
-26
lines changed

apps/3000-home/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"fast-glob": "3.3.2",
1616
"js-cookie": "3.0.5",
1717
"lodash": "4.17.21",
18-
"next": "13.5.6",
18+
"next": "14.1.2",
1919
"node-fetch": "2.7.0",
2020
"react": "18.2.0",
2121
"react-dom": "18.2.0",

apps/3001-shop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"events": "3.3.0",
1515
"fast-glob": "3.3.2",
1616
"lodash": "4.17.21",
17-
"next": "13.5.6",
17+
"next": "14.1.2",
1818
"node-fetch": "2.7.0",
1919
"react": "18.2.0",
2020
"react-dom": "18.2.0",

apps/3002-checkout/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"events": "3.3.0",
1515
"fast-glob": "3.3.2",
1616
"lodash": "4.17.21",
17-
"next": "13.5.6",
17+
"next": "14.1.2",
1818
"node-fetch": "2.7.0",
1919
"react": "18.2.0",
2020
"react-dom": "18.2.0",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"express": "4.18.2",
5151
"fast-glob": "3.3.2",
5252
"lodash.get": "4.4.2",
53-
"next": "13.5.6",
53+
"next": "14.1.2",
5454
"rambda": "7.5.0",
5555
"react": "18.2.0",
5656
"react-dom": "18.2.0",

packages/nextjs-mf/src/plugins/NextFederationPlugin/next-fragments.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ export const applyPathFixes = (compiler: Compiler, options: any) => {
5959
//@ts-ignore
6060
rule.oneOf.forEach((oneOfRule) => {
6161
if (hasLoader(oneOfRule, 'react-refresh-utils')) {
62-
oneOfRule.exclude = [oneOfRule.exclude, /universe\/packages/];
62+
oneOfRule.exclude = [oneOfRule.exclude, /universe\/packages/].filter(
63+
(i) => i,
64+
);
6365
}
6466
});
6567
}

0 commit comments

Comments
 (0)