Skip to content

Commit a8dde9a

Browse files
fix: increase parallelism when using importModule on the execution stage
1 parent 90ea8b8 commit a8dde9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/dependencies/LoaderPlugin.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ class LoaderPlugin {
197197
if (!referencedModule) {
198198
return callback(new Error("Cannot load the module"));
199199
}
200+
compilation.buildQueue.increaseParallelism();
200201
compilation.executeModule(
201202
referencedModule,
202203
{
@@ -206,6 +207,7 @@ class LoaderPlugin {
206207
}
207208
},
208209
(err, result) => {
210+
compilation.buildQueue.decreaseParallelism();
209211
if (err) return callback(err);
210212
const {
211213
fileDependencies,

0 commit comments

Comments
 (0)