UNPKG

@liberquack/utils

Version:
8 lines 331 B
import { css } from "./css.js"; import { component } from "haunted"; export function defineComponent(tagName, opts) { css `${tagName} {display: block}`; customElements.define(tagName, component(opts.func, opts.hauntedOptions ?? { useShadowDOM: false })); return opts.func; } //# sourceMappingURL=define-component.js.map