Skip to content

Commit e35b9e2

Browse files
authored
Update index.ts
1 parent 8899c93 commit e35b9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ interface Options {
6565
class ForkTsCheckerWebpackPlugin {
6666
static DEFAULT_MEMORY_LIMIT = 2048;
6767
static ONE_CPU = 1;
68-
static ALL_CPUS = os.cpus ? os.cpus().length : 1;
68+
static ALL_CPUS = os.cpus && os.cpus() ? os.cpus().length : 1;
6969
static ONE_CPU_FREE = Math.max(1, ForkTsCheckerWebpackPlugin.ALL_CPUS - 1);
7070
static TWO_CPUS_FREE = Math.max(1, ForkTsCheckerWebpackPlugin.ALL_CPUS - 2);
7171

0 commit comments

Comments
 (0)