@spectrum-web-components/base
Version:
The `SpectrumElement` base class as created by mixing `SpectrumMixin` onto `LitElement` adopts `dir` values from the `document` at connection time with a fallback to `lrt`. In a TypeScript context, it also enforces the presence of `this.shadowRoot` on ext
15 lines (14 loc) • 514 B
JavaScript
;
export function defineElement(name, constructor) {
if (window.__swc && true) {
if (customElements.get(name)) {
window.__swc.warn(
void 0,
`Attempted to redefine <${name}>. This usually indicates that multiple versions of the same web component were loaded onto a single page.`,
"https://opensource.adobe.com/spectrum-web-components/registry-conflicts"
);
}
}
customElements.define(name, constructor);
}
//# sourceMappingURL=define-element.dev.js.map