From 89cf1b6b0aff6335da4c0680d25bd033d1b9bdb9 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Wed, 16 Feb 2022 21:29:08 +0100 Subject: [PATCH] remove commons chunk config --- packages/next/build/webpack-config.ts | 5 ----- test/.stats-app/stats-config.js | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/next/build/webpack-config.ts b/packages/next/build/webpack-config.ts index d54d3c9f8c2bd23..f030cf3139e4337 100644 --- a/packages/next/build/webpack-config.ts +++ b/packages/next/build/webpack-config.ts @@ -791,11 +791,6 @@ export default async function getBaseWebpackConfig( minChunks: 1, reuseExistingChunk: true, }, - commons: { - name: 'commons', - minChunks: totalPages, - priority: 20, - }, middleware: { chunks: (chunk: webpack.compilation.Chunk) => chunk.name?.match(MIDDLEWARE_ROUTE), diff --git a/test/.stats-app/stats-config.js b/test/.stats-app/stats-config.js index 82741d746daad4b..7996360ebeb5040 100644 --- a/test/.stats-app/stats-config.js +++ b/test/.stats-app/stats-config.js @@ -9,7 +9,7 @@ const imagePageData = fs.readFileSync( const clientGlobs = [ { - name: 'Client Bundles (main, webpack, commons)', + name: 'Client Bundles (main, webpack)', globs: [ '.next/static/runtime/+(main|webpack)-*', '.next/static/chunks/!(polyfills*)',