-
Notifications
You must be signed in to change notification settings - Fork 26.2k
perf(core): use ngDevMode
to tree-shake warnings
#39959
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
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.
The change looks good overall, thanks @arturovt, I just left a couple suggestions to take into account the fact that ngDevMode
may be undeclared, so we should handle that. Thank you.
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.
reviewed-for: global-approvers
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.
reviewed-for: global-approvers
This commit adds `ngDevMode` guard to show sanitization warnings only in dev mode (similar to how things work in other parts of Ivy runtime code). The `ngDevMode` flag helps to tree-shake these warnings from production builds (in dev mode everything will work as it works right now) to decrease production bundle size.
This commit adds `ngDevMode` guard to show sanitization warnings only in dev mode (similar to how things work in other parts of Ivy runtime code). The `ngDevMode` flag helps to tree-shake these warnings from production builds (in dev mode everything will work as it works right now) to decrease production bundle size. PR Close #39959
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. |
This commit adds
ngDevMode
guard to show sanitization warnings onlyin dev mode (similar to how things work in other parts of Ivy runtime code).
The
ngDevMode
flag helps to tree-shake these warnings from production builds(in dev mode everything will work as it works right now) to decrease production bundle size.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
Does this PR introduce a breaking change?