snuggsi icon indicating copy to clipboard operation
snuggsi copied to clipboard

Improvement: NPM Support & Named Imports

Open jlukic opened this issue 2 years ago β€’ 0 comments

I appreciate that this is built to work out of the box in the browser, but it'd be nice if there was support for using portions of your library through named imports for more complex setups.

Currently npm install does work like

npm install devpunks/snuggsi

but there is no way to use this directly in code like

import { Element } from 'snuggsi';

Element `hello-world`

(class extends HTMLElement {

})

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

jlukic avatar Feb 17 '23 17:02 jlukic