Skip to content

Commit aca2ebf

Browse files
feat: remove registration warning
This warning would fire if the element was already registered. We will enable it again with export conditions in a future version.
1 parent a70ff42 commit aca2ebf

File tree

1 file changed

+1
-3
lines changed
  • packages/uui-base/lib/registration

1 file changed

+1
-3
lines changed

packages/uui-base/lib/registration/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ export function defineElement(
2121

2222
const existingElement = window.customElements.get(name);
2323

24-
if (existingElement) {
25-
console.warn(`${name} is already defined`, existingElement); // TODO: Remove this in production
26-
} else {
24+
if (!existingElement) {
2725
window.customElements.define(name, constructor, options);
2826
}
2927
};

0 commit comments

Comments
 (0)