Skip to content

Commit 5de6572

Browse files
committed
feat: ability to disable extract modules, replace private property
1 parent fa58310 commit 5de6572

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,7 @@ class MiniCssExtractPlugin {
465465

466466
for (const chunk of chunks) {
467467
const isAsync = !isInitialOrHasNoParents(chunk);
468-
// eslint-disable-next-line no-underscore-dangle
469-
for (const module of chunk._modules) {
468+
for (const module of chunk.modulesIterable) {
470469
if (module.type === MODULE_TYPE) {
471470
if (this.shouldDisableExtract({ module, isAsync })) {
472471
moduleToBeRebuild.add(module);

0 commit comments

Comments
 (0)