mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The decorator downleveling transform patches `ts.EmitResolver.isReferencedAliasDeclaration` to prevent elision of value imports that occur only in a type-position, which would inadvertently install the patch repeatedly for each source file in the program. This could potentially result in a stack overflow when a very large number of files is present in the program. This commit fixes the issue by ensuring that the patch is only applied once. This is also a slight performance improvement, as `isReferencedAliasDeclaration` is no longer repeatedly calling into all prior installed patch functions. Fixes #40276 PR Close #40374 |
||
|---|---|---|
| .. | ||
| compliance | ||
| compliance_old | ||
| diagnostics | ||
| metadata | ||
| ngtsc | ||
| transformers | ||
| BUILD.bazel | ||
| extract_i18n_spec.ts | ||
| mocks.ts | ||
| ngc_spec.ts | ||
| perform_compile_spec.ts | ||
| perform_watch_spec.ts | ||
| test_support.ts | ||
| typescript_support_spec.ts | ||