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

unable to import subpath inside package #320

Open
trusktr opened this issue Nov 29, 2023 · 0 comments
Open

unable to import subpath inside package #320

trusktr opened this issue Nov 29, 2023 · 0 comments

Comments

@trusktr
Copy link

trusktr commented Nov 29, 2023

https://generator.jspm.io/#U2NhYGBkDM0rySzJSU1hcMgpzU3Vz8ksS9VNzk9JdTDQM9UzAgATxCqeJAA

Presumably (I'm haven't checked) this is because of the darn thing called package.json exports. If so, I think it is absolutely horrible: I don't want to import the whole package and everything in it, when all I want is one specific thing. (EDIT: yep, exports)

Keep in mind this all works perfectly with vanilla modules in a browser when I make an importmap manually:

https://github.com/lume/live-code/blob/bbef27fe581d9a29e769c93e26ad7fcd8c05df64/examples/index.html#L11-L50

But with JSPM Generator and the CDN, it is limited because it tries to behave like Node.js (I'm guessing) although it is not.

I have no choice but to skip using JSPM Generator and CDN for the live-code project, because I have a feeling you're gonna say that's how it works and will not change. :(

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