Unverified Commit 38d789f8 authored by Shu Ding's avatar Shu Ding Committed by GitHub

Do not merge chunkGroups' CSS files (#51103)

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.
parent 6ba6762d
...@@ -219,13 +219,6 @@ export class ClientReferenceManifestPlugin { ...@@ -219,13 +219,6 @@ export class ClientReferenceManifestPlugin {
name: 'default', name: 'default',
chunks: chunkCSS, 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 return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment