Skip to content

Commit 42b8351

Browse files
authored
Merge branch 'master' into master
2 parents 2f7c578 + 61ff128 commit 42b8351

File tree

2 files changed

+230
-203
lines changed

2 files changed

+230
-203
lines changed

src/index.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ class ForkTsCheckerWebpackPlugin {
417417
}
418418

419419
createEmitCallback(compilation: any, callback: () => void) {
420-
const emitCallback = () => {
420+
return function emitCallback (this: ForkTsCheckerWebpackPlugin) {
421421
const elapsed = Math.round(this.elapsed[0] * 1E9 + this.elapsed[1]);
422422

423423
this.compiler.applyPlugins(
@@ -451,8 +451,6 @@ class ForkTsCheckerWebpackPlugin {
451451

452452
callback();
453453
};
454-
455-
return emitCallback;
456454
}
457455

458456
createNoopEmitCallback() {
@@ -461,7 +459,7 @@ class ForkTsCheckerWebpackPlugin {
461459
}
462460

463461
createDoneCallback() {
464-
const doneCallback = () => {
462+
return function doneCallback (this: ForkTsCheckerWebpackPlugin) {
465463
const elapsed = Math.round(this.elapsed[0] * 1E9 + this.elapsed[1]);
466464

467465
if (this.compiler) {
@@ -493,7 +491,6 @@ class ForkTsCheckerWebpackPlugin {
493491
this.logger.info('Time: ' + this.colors.bold(Math.round(elapsed / 1E6).toString()) + 'ms');
494492
}
495493
};
496-
return doneCallback;
497494
}
498495
}
499496

0 commit comments

Comments
 (0)