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:
parent
dbdbbdbe86
commit
c6e5b971d6
@ -200,7 +200,7 @@ export function performWatchCompilation(host: PerformWatchHost):
|
|||||||
rootNames: cachedOptions.rootNames,
|
rootNames: cachedOptions.rootNames,
|
||||||
options: cachedOptions.options,
|
options: cachedOptions.options,
|
||||||
host: cachedCompilerHost,
|
host: cachedCompilerHost,
|
||||||
oldProgram: cachedProgram,
|
oldProgram: oldProgram,
|
||||||
emitCallback: host.createEmitCallback(cachedOptions.options)
|
emitCallback: host.createEmitCallback(cachedOptions.options)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user