perf(router): use ngDevMode to tree-shake error messages in router (#38674)

This commit adds `ngDevMode` guard to throw some errors only in dev mode
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 #38674
This commit is contained in:
Sonu Kapoor
2020-09-02 08:01:39 -04:00
committed by Andrew Kushnir
parent 281865bbcf
commit db21c4fb44
6 changed files with 66 additions and 62 deletions

View File

@ -39,7 +39,7 @@
"master": {
"uncompressed": {
"runtime-es2015": 2289,
"main-es2015": 245303,
"main-es2015": 242351,
"polyfills-es2015": 36938,
"5-es2015": 751
}
@ -49,7 +49,7 @@
"master": {
"uncompressed": {
"runtime-es2015": 2289,
"main-es2015": 221887,
"main-es2015": 218961,
"polyfills-es2015": 36723,
"5-es2015": 781
}