fix(compiler-cli): use the oldProgram option in watch mode (#21364)

The performCompilation() is always called with an undefined oldProgram option (even in watch mode).
This was regression introduced in: 957be960d2

Partial fix, discovered in: #21361

PR Close #21364
This commit is contained in:
Ádám Lippai 2018-01-07 11:28:24 +01:00 committed by Kara Erickson
parent dbdbbdbe86
commit c6e5b971d6
1 changed files with 1 additions and 1 deletions

View File

@ -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)
});