Skip to content

Commit fba561d

Browse files
authored
Handle boolean checkSyntacticErrors option correctly when passed in
1 parent f80ecb6 commit fba561d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ function ForkTsCheckerWebpackPlugin (options) {
3131
this.logger = options.logger || console;
3232
this.silent = options.silent === true; // default false
3333
this.async = options.async !== false; // default true
34+
this.checkSyntacticErrors = options.checkSyntacticErrors === true; // default false
3435
this.workersNumber = options.workers || ForkTsCheckerWebpackPlugin.ONE_CPU;
35-
this.checkSyntacticErrors = options.checkSyntacticErrors || false; // default false
3636
this.memoryLimit = options.memoryLimit || ForkTsCheckerWebpackPlugin.DEFAULT_MEMORY_LIMIT;
3737
this.useColors = options.colors !== false; // default true
3838
this.colors = new chalk.constructor({ enabled: this.useColors });

0 commit comments

Comments
 (0)