File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/@ngtools/webpack/src Expand file tree Collapse file tree 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 {
458458 ? './type_checker_bootstrap.js'
459459 : './type_checker.js' ;
460460
461-
462461 let hasMemoryFlag = false ;
463462 const memoryFlagRegex = / - - m a x - o l d - s p a c e - s i z e / ;
464463 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 {
490489 treeKill ( this . _typeCheckerProcess . pid , 'SIGTERM' ) ;
491490 process . exit ( ) ;
492491 } ;
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 ) ;
496495 }
497496
498497 private _updateForkedTypeChecker ( changedTsFiles : string [ ] ) {
You can’t perform that action at this time.
0 commit comments