medblocks / medblocks-ui

Web Components Library for Medblocks Ecosystem
https://www.npmjs.com/package/medblocks-ui
Apache License 2.0
54 stars 15 forks source link

Ability to Import via CDN #29

Closed sidharthramesh closed 2 years ago

sidharthramesh commented 3 years ago

The current build uses imports without the file extension

import component from './file'

This does not work on a CDN and needs transformer/bundler like Vite to transform it like so:

import component from './file.js'

Either need to figure out a way to use es-build to do the transformation, or have to manually change all './file' to './file.js'.