From 0ff65a6ca595c90ebfc056fb21159f1da21f36f4 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Tue, 22 May 2018 13:46:20 +0100 Subject: [PATCH] fix(@angular-devkit/build-angular): add teardown logic to runModuleAsObservableFork --- .../build_angular/src/utils/run-module-as-observable-fork.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/angular_devkit/build_angular/src/utils/run-module-as-observable-fork.ts b/packages/angular_devkit/build_angular/src/utils/run-module-as-observable-fork.ts index 7ae29d28e6..d0568562a9 100644 --- a/packages/angular_devkit/build_angular/src/utils/run-module-as-observable-fork.ts +++ b/packages/angular_devkit/build_angular/src/utils/run-module-as-observable-fork.ts @@ -79,5 +79,8 @@ export function runModuleAsObservableFork( exportName, args, }); + + // Teardown logic. When unsubscribing, kill the forked process. + return killForkedProcess; }); }