mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b084bffb64
This commit adds `ngDevMode` guard to throw some errors only in dev mode (similar to how things work in other parts of Ivy runtime code). The `ngDevMode` flag helps to tree-shake these error messages from production builds (in dev mode everything will work as it works right now) to decrease production bundle size. PR Close #38612