8000 forEach to forEachLimit · tyroprogrammer/webpack@9cb4225 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9cb4225

Browse files
committed
forEach to forEachLimit
1 parent 3e147e6 commit 9cb4225

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Compiler.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,9 @@ class Compiler extends Tapable {
312312
const emitFiles = err => {
313313
if (err) return callback(err);
314314

315-
asyncLib.forEach(
315+
asyncLib.forEachLimit(
316316
compilation.assets,
317+
15,
317318
(source, file, callback) => {
318319
let targetFile = file;
319320
const queryStringIdx = targetFile.indexOf("?");

0 commit comments

Comments
 (0)
0