From 53e4f58a9290b9279036b3608068641acf5801fd Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Wed, 2 Jun 2021 22:15:19 -0500 Subject: [PATCH] Disable split chunks in webpack 5 in dev mode --- packages/next/build/webpack-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/build/webpack-config.ts b/packages/next/build/webpack-config.ts index 6263f321793c3..8a9e4e16f4880 100644 --- a/packages/next/build/webpack-config.ts +++ b/packages/next/build/webpack-config.ts @@ -835,7 +835,7 @@ export default async function getBaseWebpackConfig( checkWasmTypes: false, nodeEnv: false, splitChunks: isServer - ? isWebpack5 + ? isWebpack5 && !dev ? ({ filename: '[name].js', // allow to split entrypoints