File tree Expand file tree Collapse file tree 2 files changed +230
-203
lines changed Expand file tree Collapse file tree 2 files changed +230
-203
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ class ForkTsCheckerWebpackPlugin {
417
417
}
418
418
419
419
createEmitCallback ( compilation : any , callback : ( ) => void ) {
420
- const emitCallback = ( ) => {
420
+ return function emitCallback ( this : ForkTsCheckerWebpackPlugin ) {
421
421
const elapsed = Math . round ( this . elapsed [ 0 ] * 1E9 + this . elapsed [ 1 ] ) ;
422
422
423
423
this . compiler . applyPlugins (
@@ -451,8 +451,6 @@ class ForkTsCheckerWebpackPlugin {
451
451
452
452
callback ( ) ;
453
453
} ;
454
-
455
- return emitCallback ;
456
454
}
457
455
458
456
createNoopEmitCallback ( ) {
@@ -461,7 +459,7 @@ class ForkTsCheckerWebpackPlugin {
461
459
}
462
460
463
461
createDoneCallback ( ) {
464
- const doneCallback = ( ) => {
462
+ return function doneCallback ( this : ForkTsCheckerWebpackPlugin ) {
465
463
const elapsed = Math . round ( this . elapsed [ 0 ] * 1E9 + this . elapsed [ 1 ] ) ;
466
464
467
465
if ( this . compiler ) {
@@ -493,7 +491,6 @@ class ForkTsCheckerWebpackPlugin {
493
491
this . logger . info ( 'Time: ' + this . colors . bold ( Math . round ( elapsed / 1E6 ) . toString ( ) ) + 'ms' ) ;
494
492
}
495
493
} ;
496
- return doneCallback ;
497
494
}
498
495
}
499
496
You can’t perform that action at this time.
0 commit comments