File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -319,14 +319,14 @@ class ForkTsCheckerWebpackPlugin {
319
319
if ( 'hooks' in this . compiler ) {
320
320
// webpack 4
321
321
this . compiler . hooks . compile . tap ( checkerPluginName , ( ) => {
322
+ this . compilationDone = false ;
322
323
this . compiler . hooks . forkTsCheckerServiceBeforeStart . callAsync ( ( ) => {
323
324
if ( this . cancellationToken ) {
324
325
// request cancellation if there is not finished job
325
326
this . cancellationToken . requestCancellation ( ) ;
326
327
this . compiler . hooks . forkTsCheckerCancel . call ( this . cancellationToken ) ;
327
328
}
328
329
this . checkDone = false ;
329
- this . compilationDone = false ;
330
330
331
331
this . started = process . hrtime ( ) ;
332
332
@@ -350,14 +350,14 @@ class ForkTsCheckerWebpackPlugin {
350
350
} else {
351
351
// webpack 2 / 3
352
352
this . compiler . plugin ( 'compile' , ( ) => {
353
+ this . compilationDone = false ;
353
354
this . compiler . applyPluginsAsync ( 'fork-ts-checker-service-before-start' , ( ) => {
354
355
if ( this . cancellationToken ) {
355
356
// request cancellation if there is not finished job
356
357
this . cancellationToken . requestCancellation ( ) ;
357
358
this . compiler . applyPlugins ( 'fork-ts-checker-cancel' , this . cancellationToken ) ;
358
359
}
359
360
this . checkDone = false ;
360
- this . compilationDone = false ;
361
361
362
362
this . started = process . hrtime ( ) ;
363
363
You can’t perform that action at this time.
0 commit comments