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

Import Map doesn't support CDN based directories #91

Open
MattStopa opened this issue Jan 3, 2022 · 1 comment · May be fixed by #235
Open

Import Map doesn't support CDN based directories #91

MattStopa opened this issue Jan 3, 2022 · 1 comment · May be fixed by #235

Comments

@MattStopa
Copy link

MattStopa commented Jan 3, 2022

It seems that Import Map only supports the happy case of having to use a single file from a REPO for example:

pin "quill", to: "https://ga.jspm.io/npm:[email protected]/dist/quill.js"

In reality though, in order write custom plugins you tend to have to extend some existing classes. It would be nice to be able to say something like

pin_all_from "https://unpkg.com/[email protected]/", under: "quill"

and then be able to access different files via import "quill/dist/quill.js" Or at least have a "Download all files" option to vendor it. Otherwise if you need 10 files youd probably have to do:

pin "quill", to: "https://ga.jspm.io/npm:[email protected]/dist/quill.js"
pin "Bold", to: "https://ga.jspm.io/npm:[email protected]/fonts/bold.js"
pin "Italtic", to: "https://ga.jspm.io/npm:[email protected]/fonts/italtic.js"
etc, etc.
@dhh
Copy link
Member

dhh commented Feb 19, 2022

Please do explore this!

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

Successfully merging a pull request may close this issue.

2 participants