fix: enforce name for all groups to avoid regression (#7808)

This commit is contained in:
Pooya Parsa 2020-07-30 17:10:43 +02:00
parent e0b52031e8
commit 5909de70ea

View File

@ -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