diff --git a/packages/compiler-cli/src/perform_watch.ts b/packages/compiler-cli/src/perform_watch.ts index 0cf9cd5edd..b2b7e2faa5 100644 --- a/packages/compiler-cli/src/perform_watch.ts +++ b/packages/compiler-cli/src/perform_watch.ts @@ -200,7 +200,7 @@ export function performWatchCompilation(host: PerformWatchHost): rootNames: cachedOptions.rootNames, options: cachedOptions.options, host: cachedCompilerHost, - oldProgram: cachedProgram, + oldProgram: oldProgram, emitCallback: host.createEmitCallback(cachedOptions.options) });