Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: NPM Support & Named Imports #228

Open
jlukic opened this issue Feb 17, 2023 · 0 comments
Open

Improvement: NPM Support & Named Imports #228

jlukic opened this issue Feb 17, 2023 · 0 comments

Comments

@jlukic
Copy link

jlukic commented Feb 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant