-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Forbid custom decorators in local compilation mode #53983
Conversation
What would be the benefit of forbidding custom decorators? We use decorators to put our components (with meta information) into registries, which in turn are used for completely dynamic json based custom templates |
Local compilation is a feature that is used internally at Google so it doesn't affect how we build Angular apps. |
b6a32a4
to
7949ced
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM conceptually, just some nits
…ompilation mode At the moment local compilation mode does not support custom decorators, and it leads to unhandled errors. In this change a compile time diagnostic is produced in local mode for custom decorators. This is a temporary solution since there are few custom decorators are in use in g3. Custom decorators will be eventually supported in local mode.
7949ced
to
a8ee355
Compare
This PR was merged into the repository by commit 0970129. |
…ompilation mode (angular#53983) At the moment local compilation mode does not support custom decorators, and it leads to unhandled errors. In this change a compile time diagnostic is produced in local mode for custom decorators. This is a temporary solution since there are few custom decorators are in use in g3. Custom decorators will be eventually supported in local mode. PR Close angular#53983
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Eventually we will support custom decorators in local compilation mode. But for now we forbid it since there are little usage of it in g3.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information