Skip to content

Commit

Permalink
fixup! perf(core): use ngDevMode to tree-shake error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sonukapoor committed Sep 1, 2020
1 parent 3566774 commit aa01b6a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 18 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/render3/instructions/shared.ts
Expand Up @@ -1393,10 +1393,10 @@ function findDirectiveDefMatches(
`Please use a different tag to activate the ${stringify(def.type)} component.`);

if (tNode.flags & TNodeFlags.isComponentHost) throwMultipleComponentError(tNode);
markAsComponentHost(tView, tNode);
// The component is always stored first with directives after.
matches.unshift(def);
}
markAsComponentHost(tView, tNode);
// The component is always stored first with directives after.
matches.unshift(def);
} else {
matches.push(def);
}
Expand Down
Expand Up @@ -350,9 +350,6 @@
{
"name": "setUpAttributes"
},
{
"name": "throwMultipleComponentError"
},
{
"name": "unwrapRNode"
},
Expand Down
6 changes: 0 additions & 6 deletions packages/core/test/bundling/forms/bundle.golden_symbols.json
Expand Up @@ -1586,12 +1586,6 @@
{
"name": "syncPendingControls"
},
{
"name": "throwMixedMultiProviderError"
},
{
"name": "throwMultipleComponentError"
},
{
"name": "toObservable"
},
Expand Down
Expand Up @@ -128,9 +128,6 @@
{
"name": "stringify"
},
{
"name": "throwMixedMultiProviderError"
},
{
"name": "ɵɵdefineInjectable"
},
Expand Down
3 changes: 0 additions & 3 deletions packages/core/test/bundling/todo/bundle.golden_symbols.json
Expand Up @@ -713,9 +713,6 @@
{
"name": "stringifyForError"
},
{
"name": "throwMultipleComponentError"
},
{
"name": "toTStylingRange"
},
Expand Down

0 comments on commit aa01b6a

Please sign in to comment.