Skip to content

Commit aa82bd5

Browse files
authored
Limit worker pool size (microsoft#185164)
Fixes microsoft#185079 Should fix OOM issues on build machines
1 parent e3f0f4a commit aa82bd5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/lib/mangle/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/lib/mangle/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ export class Mangler {
416416
this.service = ts.createLanguageService(new StaticLanguageServiceHost(projectPath));
417417

418418
this.renameWorkerPool = workerpool.pool(path.join(__dirname, 'renameWorker.js'), {
419-
maxWorkers: 2,
419+
maxWorkers: 1,
420420
minWorkers: 'max'
421421
});
422422
}

0 commit comments

Comments
 (0)