We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8899c93 commit e35b9e2Copy full SHA for e35b9e2
src/index.ts
@@ -65,7 +65,7 @@ interface Options {
65
class ForkTsCheckerWebpackPlugin {
66
static DEFAULT_MEMORY_LIMIT = 2048;
67
static ONE_CPU = 1;
68
- static ALL_CPUS = os.cpus ? os.cpus().length : 1;
+ static ALL_CPUS = os.cpus && os.cpus() ? os.cpus().length : 1;
69
static ONE_CPU_FREE = Math.max(1, ForkTsCheckerWebpackPlugin.ALL_CPUS - 1);
70
static TWO_CPUS_FREE = Math.max(1, ForkTsCheckerWebpackPlugin.ALL_CPUS - 2);
71
0 commit comments