Limit worker pool size (#185164)

Fixes #185079

Should fix OOM issues on build machines
This commit is contained in:
Matt Bierner
2023-06-14 14:57:22 -07:00
committed by GitHub
parent e3f0f4a875
commit aa82bd59b2
2 changed files with 2 additions and 2 deletions

View File

@@ -416,7 +416,7 @@ export class Mangler {
this.service = ts.createLanguageService(new StaticLanguageServiceHost(projectPath));
this.renameWorkerPool = workerpool.pool(path.join(__dirname, 'renameWorker.js'), {
maxWorkers: 2,
maxWorkers: 1,
minWorkers: 'max'
});
}