Unverified Commit 9c6d7bbd authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Ensure server split chunks are nested in chunks dir (#25203)

parent 7426ebcb
...@@ -824,13 +824,14 @@ export default async function getBaseWebpackConfig( ...@@ -824,13 +824,14 @@ export default async function getBaseWebpackConfig(
nodeEnv: false, nodeEnv: false,
splitChunks: isServer splitChunks: isServer
? isWebpack5 ? isWebpack5
? { ? ({
filename: `${dev ? '[name]' : '[name].[contenthash]'}.js`,
// allow to split entrypoints // allow to split entrypoints
chunks: 'all', chunks: 'all',
// size of files is not so relevant for server build // size of files is not so relevant for server build
// we want to prefer deduplication to load less code // we want to prefer deduplication to load less code
minSize: 1000, minSize: 1000,
} } as any)
: false : false
: splitChunksConfig, : splitChunksConfig,
runtimeChunk: isServer runtimeChunk: isServer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment