Skip to content

Commit 2b9f3d8

Browse files
committed
feat: ability to disable extract async modules, wrong initial chunks fix
1 parent 0f6b446 commit 2b9f3d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,9 @@ class MiniCssExtractPlugin {
503503
if (module.type === MODULE_TYPE) {
504504
if (this.shouldDisableAsync({ module })) {
505505
compilation[MODULE_TYPE].asyncModuleToBeRebuild.add(module);
506+
} else {
507+
obj[chunk.id] = 1;
506508
}
507-
508-
obj[chunk.id] = 1;
509509
}
510510
}
511511
}

0 commit comments

Comments
 (0)