perf(core): use ngDevMode to tree-shake warnings#39959
Closed
arturovt wants to merge 1 commit intoangular:masterfrom
arturovt:guard-warnings-with-ng-dev
Closed
perf(core): use ngDevMode to tree-shake warnings#39959arturovt wants to merge 1 commit intoangular:masterfrom arturovt:guard-warnings-with-ng-dev
ngDevMode to tree-shake warnings#39959arturovt wants to merge 1 commit intoangular:masterfrom
arturovt:guard-warnings-with-ng-dev
Conversation
AndrewKushnir
requested changes
Dec 3, 2020
Contributor
AndrewKushnir
left a comment
There was a problem hiding this comment.
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.
AndrewKushnir
approved these changes
Dec 3, 2020
Contributor
mhevery
approved these changes
Dec 3, 2020
mhevery
approved these changes
Dec 3, 2020
Contributor
mhevery
left a comment
There was a problem hiding this comment.
reviewed-for: global-approvers
mhevery
approved these changes
Dec 3, 2020
Contributor
mhevery
left a comment
There was a problem hiding this comment.
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.
alan-agius4
approved these changes
Dec 4, 2020
mhevery
pushed a commit
that referenced
this pull request
Dec 4, 2020
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This commit adds
ngDevModeguard to show sanitization warnings onlyin dev mode (similar to how things work in other parts of Ivy runtime code).
The
ngDevModeflag 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?