3e569767e3
Currently, ngtsc decides to use remote scoping if the compilation of a component may create a cyclic import. This happens if there are two components in a scope (say, A and B) and A directly uses B. During compilation of B ngtsc will then note that if B were to use A, a cycle would be generated, and so it will opt to use remote scoping for B. ngtsc already uses the R3TargetBinder to correctly track the imports that are actually required, for future cycle tracking. This commit expands that usage to not trigger remote scoping unless B actually does consume A in its template. PR Close #29404 |
||
---|---|---|
.. | ||
fake_core | ||
BUILD.bazel | ||
env.ts | ||
ngtsc_spec.ts | ||
scope_spec.ts | ||
sourcemap_utils.ts | ||
template_mapping_spec.ts | ||
template_typecheck_spec.ts |