perf(core): use ngDevMode
to tree-shake error messages (#38612)
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
This commit is contained in:
@ -350,9 +350,6 @@
|
||||
{
|
||||
"name": "setUpAttributes"
|
||||
},
|
||||
{
|
||||
"name": "throwMultipleComponentError"
|
||||
},
|
||||
{
|
||||
"name": "unwrapRNode"
|
||||
},
|
||||
|
@ -1586,12 +1586,6 @@
|
||||
{
|
||||
"name": "syncPendingControls"
|
||||
},
|
||||
{
|
||||
"name": "throwMixedMultiProviderError"
|
||||
},
|
||||
{
|
||||
"name": "throwMultipleComponentError"
|
||||
},
|
||||
{
|
||||
"name": "toObservable"
|
||||
},
|
||||
|
@ -128,9 +128,6 @@
|
||||
{
|
||||
"name": "stringify"
|
||||
},
|
||||
{
|
||||
"name": "throwMixedMultiProviderError"
|
||||
},
|
||||
{
|
||||
"name": "ɵɵdefineInjectable"
|
||||
},
|
||||
|
@ -713,9 +713,6 @@
|
||||
{
|
||||
"name": "stringifyForError"
|
||||
},
|
||||
{
|
||||
"name": "throwMultipleComponentError"
|
||||
},
|
||||
{
|
||||
"name": "toTStylingRange"
|
||||
},
|
||||
|
Reference in New Issue
Block a user