JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 286
  • Score
    100M100P100Q88175F
  • License MIT

Package Exports

  • @atomico/wrapper
  • @atomico/wrapper/allow-deduple
  • @atomico/wrapper/options
  • @atomico/wrapper/types

Readme

@atomico/wrapper

Captura el registro de los customElements para asi lograr optener su tagName

import { getDefinition } from "@atomico/wrapper";

class MyElement extends HTMLElement {}

customElements.define("my-element", MyElement);

console.log(getDefinition(MyElement)); // ["my-element", undefined];