Unverified Commit de83bf55 authored by Shu Ding's avatar Shu Ding Committed by GitHub

Revert "Do not merge chunkGroups' CSS files" (#51193)

Reverts vercel/next.js#51103
parent d106155c
......@@ -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
......
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