Skip to content

Commit

Permalink
refactor: always fallback to default if chunk have no name
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 4, 2020
1 parent dd99d1f commit faf3ded
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/webpack/src/config/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ export default class WebpackClientConfig extends WebpackBaseConfig {

if (!this.dev && cacheGroups.default && cacheGroups.default.name === undefined) {
cacheGroups.default.name = (_module, chunks) => {
// Use default name for single chunks
if (chunks.length === 1) {
return chunks[0].name || ''
}
// Use compact name for concatinated modules
let compactName = chunks
.filter(c => c.name)
Expand Down

0 comments on commit faf3ded

Please sign in to comment.