vanillawc/.github

Refactor Exports

evanplaice opened this issue · 1 comments

Modules currently only provide a default export that registers the web component globally. This refactor will instead provide a named export as well as the existing default export. The named export will allow users to extend, register, and alias the web component on their own terms.

In addition, each repo should have instructions on how to import the module using either approach.

Checklist

  • wc-blink
  • wc-bullet-chain
  • wc-codemirror
  • wc-csv-table
  • wc-demo
  • wc-include
  • wc-markdown
  • wc-marquee
  • wc-monaco-editor
  • wc-resume
  • wc-social-link
  • wc-sortable-table
  • wc-template

There's no way to define a self-executing default export and all web components already provide a named export