We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
for of
forEach
modulesIterable
1 parent 84782d4 commit 36c1456Copy full SHA for 36c1456
src/index.js
@@ -393,7 +393,7 @@ class MiniCssExtractPlugin {
393
394
compilation.hooks.optimizeChunks.tap(pluginName, (chunks) => {
395
for (const chunk of chunks) {
396
- chunk.modulesIterable.forEach((module) => {
+ for (const module of chunk.modulesIterable) {
397
// eslint-disable-next-line no-param-reassign
398
module.dependencies = module.dependencies.filter((dep) => {
399
const hasCssDep =
@@ -417,7 +417,7 @@ class MiniCssExtractPlugin {
417
) {
418
chunk.removeModule(module.issuer);
419
}
420
- });
+ }
421
422
});
423
0 commit comments