Skip to content

Commit f915542

Browse files
committed
fix os.cpus is not a function
1 parent aa4a97e commit f915542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
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().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)