function customElement(name) {
  return (_, {
    addInitializer
  }) => {
    addInitializer(function defineElement() {
      customElements.define(name, this);
    });
  };
}

export { customElement };
