Commit 1153ad29 authored by JJ Kasper's avatar JJ Kasper

apply chunking fix #62424

parent 16e7a5bd
...@@ -951,21 +951,14 @@ export default async function getBaseWebpackConfig( ...@@ -951,21 +951,14 @@ export default async function getBaseWebpackConfig(
return false return false
} }
if (isNodeServer) { if (isNodeServer || isEdgeServer) {
return { return {
filename: '[name].js', filename: `${isEdgeServer ? 'edge-chunks/' : ''}[name].js`,
chunks: 'all', chunks: 'all',
minChunks: 2, minChunks: 2,
} }
} }
if (isEdgeServer) {
return {
filename: 'edge-chunks/[name].js',
minChunks: 2,
}
}
return { return {
// Keep main and _app chunks unsplitted in webpack 5 // Keep main and _app chunks unsplitted in webpack 5
// as we don't need a separate vendor chunk from that // as we don't need a separate vendor chunk from that
......
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