Skip to content

Commit

Permalink
fix global css marked as side effect free
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Oct 17, 2022
1 parent 7be2ef0 commit a2a7f95
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -397,7 +397,7 @@ export class FlightClientEntryPlugin {
const sideEffectFree =
mod.factoryMeta && (mod.factoryMeta as any).sideEffectFree

if (sideEffectFree) {
if (sideEffectFree && modRequest.endsWith('.module.css')) {
const unused = !compilation.moduleGraph
.getExportsInfo(mod)
.isModuleUsed(
Expand Down

0 comments on commit a2a7f95

Please sign in to comment.