Skip to content

Commit 6e85e36

Browse files
fix: disable chunk split on next server (#2765)
Co-authored-by: ScriptedAlchemy <[email protected]>
1 parent b00ef13 commit 6e85e36

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/silly-yaks-enjoy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/nextjs-mf': patch
3+
---
4+
5+
disable chunk splitting on next server

packages/nextjs-mf/src/plugins/NextFederationPlugin/apply-server-plugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export function configureServerCompilerOptions(compiler: Compiler): void {
167167
};
168168
compiler.options.target = 'async-node';
169169
// no custom chunk rules
170-
//compiler.options.optimization.splitChunks = undefined;
170+
compiler.options.optimization.splitChunks = undefined;
171171

172172
// solves strange issues where next doesnt create a runtime chunk
173173
// might be related to if an api route exists or not

0 commit comments

Comments
 (0)