Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit 3f0767b

Browse files
hedgepigdanielevilebottnawi
authored andcommittedMay 15, 2018
fix: don't use a worker farm unless more than one process is required (#280)
1 parent dbebb3b commit 3f0767b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/uglify/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class {
2525
return;
2626
}
2727

28-
if (this.maxConcurrentWorkers > 0) {
28+
if (this.maxConcurrentWorkers > 1) {
2929
const workerOptions = process.platform === 'win32' ? { maxConcurrentWorkers: this.maxConcurrentWorkers, maxConcurrentCallsPerWorker: 1 } : { maxConcurrentWorkers: this.maxConcurrentWorkers };
3030
this.workers = workerFarm(workerOptions, workerFile);
3131
this.boundWorkers = (options, cb) => this.workers(serialize(options), cb);

0 commit comments

Comments
 (0)
This repository has been archived.