Skip to content

Commit

Permalink
Do not merge chunkGroups' CSS files (#51103)
Browse files Browse the repository at this point in the history
This is a temporary fix before we can ship #51018 (more details there). If there're multiple chunk groups holding the same CSS module, we use files from the first one. This has some flaws but still better than our current status.
  • Loading branch information
shuding committed Jun 11, 2023
1 parent 6ba6762 commit 38d789f
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,6 @@ 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 38d789f

Please sign in to comment.