2024-09-26 15:34:11 +03:00
|
|
|
diff --git a/node_modules/@angular/core/fesm2022/core.mjs b/node_modules/@angular/core/fesm2022/core.mjs
|
|
|
|
|
index d0a158f..e16744c 100755
|
|
|
|
|
--- a/node_modules/@angular/core/fesm2022/core.mjs
|
|
|
|
|
+++ b/node_modules/@angular/core/fesm2022/core.mjs
|
|
|
|
|
@@ -12685,13 +12685,13 @@ function findDirectiveDefMatches(tView, tNode) {
|
2023-05-22 15:30:57 +03:00
|
|
|
if (isNodeMatchingSelectorList(tNode, def.selectors, /* isProjectionMode */ false)) {
|
|
|
|
|
matches || (matches = []);
|
|
|
|
|
if (isComponentDef(def)) {
|
|
|
|
|
- if (ngDevMode) {
|
|
|
|
|
+ // if (ngDevMode) {
|
|
|
|
|
assertTNodeType(tNode, 2 /* TNodeType.Element */, `"${tNode.value}" tags cannot be used as component hosts. ` +
|
|
|
|
|
`Please use a different tag to activate the ${stringify(def.type)} component.`);
|
|
|
|
|
if (isComponentHost(tNode)) {
|
|
|
|
|
throwMultipleComponentError(tNode, matches.find(isComponentDef).type, def.type);
|
|
|
|
|
}
|
|
|
|
|
- }
|
|
|
|
|
+ // }
|
|
|
|
|
// Components are inserted at the front of the matches array so that their lifecycle
|
|
|
|
|
// hooks run before any directive lifecycle hooks. This appears to be for ViewEngine
|
|
|
|
|
// compatibility. This logic doesn't make sense with host directives, because it
|