mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix: enforce name for all groups to avoid regression (#7808)
This commit is contained in:
parent
e0b52031e8
commit
5909de70ea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user