Skip to content

Commit 3eafb4b

Browse files
committed
Revert "fix(core): add additional component metadata to component ID generation (#50203)" (#50335)
This reverts commit 52c74d3. The reason for revert: this change is breaking some targets in g3. PR Close #50335
1 parent 4c5c054 commit 3eafb4b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/core/src/render3/definition.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ function getComponentId(componentDef: ComponentDef<unknown>): string {
679679
// https://github.com/angular/components/blob/d9f82c8f95309e77a6d82fd574c65871e91354c2/src/material/core/option/option.ts#L248
680680
// https://github.com/angular/components/blob/285f46dc2b4c5b127d356cb7c4714b221f03ce50/src/material/legacy-core/option/option.ts#L32
681681

682-
const hashSelectors = JSON.stringify([
682+
const hashSelectors = [
683683
componentDef.selectors,
684684
componentDef.ngContentSelectors,
685685
componentDef.hostVars,
@@ -689,16 +689,12 @@ function getComponentId(componentDef: ComponentDef<unknown>): string {
689689
componentDef.decls,
690690
componentDef.encapsulation,
691691
componentDef.standalone,
692-
componentDef.signals,
693-
componentDef.exportAs,
694-
componentDef.inputs,
695-
componentDef.outputs,
696692
// We cannot use 'componentDef.type.name' as the name of the symbol will change and will not
697693
// match in the server and browser bundles.
698694
Object.getOwnPropertyNames(componentDef.type.prototype),
699695
!!componentDef.contentQueries,
700696
!!componentDef.viewQuery,
701-
]);
697+
].join('|');
702698

703699
for (const char of hashSelectors) {
704700
hash = Math.imul(31, hash) + char.charCodeAt(0) << 0;

0 commit comments

Comments
 (0)