Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(compiler-cli): do not drop non-Angular decorators when downleveling #39577

Commits on Nov 5, 2020

  1. fix(compiler-cli): do not drop non-Angular decorators when downleveling

    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 angular#39574
    petebacondarwin committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    6592415 View commit details
    Browse the repository at this point in the history