Skip to content

Commit eec4fd3

Browse files
filipesilvaBrocco
authored andcommitted
fix(@ngtools/webpack): exist main process after killing fork
1 parent 2f98aa7 commit eec4fd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/@ngtools/webpack/src/angular_compiler_plugin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,10 @@ export class AngularCompilerPlugin implements Tapable {
433433
this._JitMode, this._tsFilenames));
434434

435435
// Cleanup.
436-
const killTypeCheckerProcess = () => treeKill(this._typeCheckerProcess.pid, 'SIGTERM');
436+
const killTypeCheckerProcess = () => {
437+
treeKill(this._typeCheckerProcess.pid, 'SIGTERM');
438+
process.exit();
439+
};
437440
process.on('exit', killTypeCheckerProcess);
438441
process.on('SIGINT', killTypeCheckerProcess);
439442
process.on('uncaughtException', killTypeCheckerProcess);

0 commit comments

Comments
 (0)