File tree 1 file changed +3
-4
lines changed
packages/@ngtools/webpack/src
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,6 @@ export class AngularCompilerPlugin implements Tapable {
458
458
? './type_checker_bootstrap.js'
459
459
: './type_checker.js' ;
460
460
461
-
462
461
let hasMemoryFlag = false ;
463
462
const memoryFlagRegex = / - - m a x - o l d - s p a c e - s i z e / ;
464
463
const debugArgRegex = / - - i n s p e c t (?: - b r k | - p o r t ) ? | - - d e b u g (?: - b r k | - p o r t ) / ;
@@ -490,9 +489,9 @@ export class AngularCompilerPlugin implements Tapable {
490
489
treeKill ( this . _typeCheckerProcess . pid , 'SIGTERM' ) ;
491
490
process . exit ( ) ;
492
491
} ;
493
- process . on ( 'exit' , killTypeCheckerProcess ) ;
494
- process . on ( 'SIGINT' , killTypeCheckerProcess ) ;
495
- process . on ( 'uncaughtException' , killTypeCheckerProcess ) ;
492
+ process . once ( 'exit' , killTypeCheckerProcess ) ;
493
+ process . once ( 'SIGINT' , killTypeCheckerProcess ) ;
494
+ process . once ( 'uncaughtException' , killTypeCheckerProcess ) ;
496
495
}
497
496
498
497
private _updateForkedTypeChecker ( changedTsFiles : string [ ] ) {
You can’t perform that action at this time.
0 commit comments