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 Aug 28, 2020
1 parent e2247cc commit 566468b
Showing 1 changed file with 3 additions and 3 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

0 comments on commit 566468b

Please sign in to comment.