Skip to content

Commit

Permalink
fix os.cpus is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
superlbr committed Oct 21, 2018
1 parent aa4a97e commit f915542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ interface Options {
class ForkTsCheckerWebpackPlugin {
static DEFAULT_MEMORY_LIMIT = 2048;
static ONE_CPU = 1;
static ALL_CPUS = os.cpus() ? os.cpus().length : 1;
static ALL_CPUS = os.cpus ? os.cpus().length : 1;
static ONE_CPU_FREE = Math.max(1, ForkTsCheckerWebpackPlugin.ALL_CPUS - 1);
static TWO_CPUS_FREE = Math.max(1, ForkTsCheckerWebpackPlugin.ALL_CPUS - 2);

Expand Down

0 comments on commit f915542

Please sign in to comment.