fix(ivy): recompile component when template changes in ngc watch mode (#33551)

When the Angular compiler is operated through the ngc binary in watch
mode, changing a template in an external file would not cause the
component to be recompiled if Ivy is enabled.

There was a problem with how a cached compiler host was present that was
unaware of the changed resources, therefore failing to trigger a
recompilation of a component whenever its template changes. This commit
fixes the issue by ensuring that information about modified resources is
correctly available to the cached compiler host.

Fixes #32869

PR Close #33551
This commit is contained in:
JoostK
2019-11-03 00:33:31 +01:00
committed by Andrew Scott
parent 854a377232
commit cd8333cf0d
3 changed files with 39 additions and 6 deletions

View File

@ -109,6 +109,7 @@ ts_library(
":test_utils",
"//packages/compiler",
"//packages/compiler-cli",
"//packages/private/testing",
"@npm//typescript",
],
)