From 5909de70ea570c01bf28fa63f3981edca9771c86 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 30 Jul 2020 17:10:43 +0200 Subject: [PATCH] fix: enforce name for all groups to avoid regression (#7808) --- packages/webpack/src/config/client.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/webpack/src/config/client.js b/packages/webpack/src/config/client.js index 6e964ee226..ee37e38477 100644 --- a/packages/webpack/src/config/client.js +++ b/packages/webpack/src/config/client.js @@ -98,6 +98,13 @@ export default class WebpackClientConfig extends WebpackBaseConfig { const prefix = nameMap[cacheGroup || 'default'] || cacheGroup return prefix + '/' + compactName } + + // Enforce name for all groups + for (const group of Object.values(cacheGroups)) { + if (group.name === undefined) { + group.name = true + } + } } return optimization