iconstorm/lol-element

Develop setup for "exporting" component libraries

Opened this issue · 0 comments

So people can "export" component libraries which are easy to consume, so these end up being tree-shakeable but also consumable via CDN:

Something like this?

  • lol.js ("runtime")
  • component-1/component-1.js
  • component-1/register.js
  • component-2/..
  • component-3/..

where

// component-1/component-1.js
import { LOL, html } from '../lol.js'

// ...