fix(compiler-cli): do not drop non-Angular decorators when downleveli… · angular/angular@1c6cf8a · GitHub
Skip to content

Commit 1c6cf8a

Browse files
petebacondarwinmhevery
authored andcommitted
fix(compiler-cli): do not drop non-Angular decorators when downleveling (#39577)
There is a compiler transform that downlevels Angular class decorators to static properties so that metadata is available for JIT compilation. The transform was supposed to ignore non-Angular decorators but it was actually completely dropping decorators that did not conform to a very specific syntactic shape (i.e. the decorator was a simple identifier, or a namespaced identifier). This commit ensures that all non-Angular decorators are kepts as-is even if they are built using a syntax that the Angular compiler does not understand. Fixes #39574 PR Close #39577
1 parent 7bd0133 commit 1c6cf8a

2 files changed

Lines changed: 27 additions & 7 deletions

File tree

‎packages/compiler-cli/src/transformers/downlevel_decorators_transform.ts‎

Lines changed: 12 additions & 7 deletions

‎packages/compiler-cli/test/transformers/downlevel_decorators_transform_spec.ts‎

Lines changed: 15 additions & 0 deletions

0 commit comments

Comments
 (0)