-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: add tooling to avoid jit issues with empty NgModule definitions #13843
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
Conversation
* Expands the decorator validation rule to allow us to run a regex against all the arguments of a decorator. This allows us to guard against cases like angular#13792. * Fixes a similar issue as angular#13792 in the `LayoutModule` which was caught after the new changes to the rule.
Didn't we chat about it just being something that should technically work, but we just have no idea how the given team ran into issues with it. or did @mmalerba already get a response about why this happened? |
I see, it just feels a bit odd to enforce something that is technically supported by Angular, but broke for someone potentially doing something unexpected we don't are aware of. It would be just good to understand when it could break, and report an issue on Angular. I don't feel too strong about it.. the tooling shouldn't hurt either. |
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
I did talk to them, they mentioned that they might have had Ivy enabled at the time, but Misko didn't think it seemed like an Ivy issue. It's also possible it was a change Angular merged but didn't release yet, or maybe the team was just doing something really crazy. Whatever the reason, I don't think it hurts for us to specify the |
angular#13843) * Expands the decorator validation rule to allow us to run a regex against all the arguments of a decorator. This allows us to guard against cases like angular#13792. * Fixes a similar issue as angular#13792 in the `LayoutModule` which was caught after the new changes to the rule.
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. |
{}
to@NgModule
since passing nothing breaks in JIT mode #13792.{}
to@NgModule
since passing nothing breaks in JIT mode #13792 in theLayoutModule
which was caught after the new changes to the rule.