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 |
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| compiler_host_spec.ts | ||
| downlevel_decorators_transform_spec.ts | ||
| inline_resources_spec.ts | ||
| lower_expressions_spec.ts | ||
| metadata_reader_spec.ts | ||
| node_emitter_spec.ts | ||
| program_spec.ts | ||
| r3_metadata_transform_spec.ts | ||
| r3_transform_spec.ts | ||