Skip to content

Commit

Permalink
Revert "Do not merge chunkGroups' CSS files (#51103)"
Browse files Browse the repository at this point in the history
This reverts commit 38d789f.
  • Loading branch information
shuding committed Jun 12, 2023
1 parent d106155 commit b88df23
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,13 @@ export class ClientReferenceManifestPlugin {
name: 'default',
chunks: chunkCSS,
}
} else {
// It is possible that there are multiple modules with the same resource,
// e.g. extracted by mini-css-extract-plugin. In that case we need to
// merge the chunks.
moduleReferences[exportName].chunks = [
...new Set([...moduleReferences[exportName].chunks, ...chunkCSS]),
]
}

return
Expand Down

0 comments on commit b88df23

Please sign in to comment.