perf(core): use `ngDevMode` to tree-shake warnings by arturovt · Pull Request #39959 · angular/angular

AndrewKushnir

AndrewKushnir

@arturovt @mhevery

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

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

@arturovt arturovt deleted the guard-warnings-with-ng-dev branch

December 4, 2020 18:31