Skip to content

Commit

Permalink
fix: enforce name for all groups to avoid regression (#7808)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 30, 2020
1 parent e0b5203 commit 5909de7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/webpack/src/config/client.js
Expand Up @@ -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
Expand Down

0 comments on commit 5909de7

Please sign in to comment.