From 3a6127d8853e8d2ea15e0d220119b1323d4b7233 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Fri, 22 Apr 2022 13:49:20 +0200 Subject: [PATCH] chore(webpack): do not split chunks --- webpack.config.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index a0510d9e4..e89bf3937 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -284,32 +284,6 @@ async function webpackConfig() { moduleIds: 'named', chunkIds: 'named', runtimeChunk: 'single', - splitChunks: { - chunks: 'all', - maxInitialRequests: Infinity, - maxAsyncRequests: Infinity, - minSize: 0, - minChunks: 1, - cacheGroups: { - vendor: { - test(module, chunk) { - return module.context && module.context.match(/[\\/]node_modules[\\/]/); - }, - name(module, chunks, cacheGroupKey) { - const moduleFileName = module.identifier().split('/').reduceRight(item => item); - const allChunksNames = chunks.map((item) => item.name).join('~'); - const packageName = module.context.match(/[\\/]node_modules[\\/](.*?)([\\/]|$)/)[1]; - - return `${cacheGroupKey}-${packageName}-${allChunksNames}-${moduleFileName}`; - }, - priority: -10 - }, - default: { - priority: -20, - minChunks: 1 - } - } - }, realContentHash: false },