-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Allow mixed providers #412
Comments
In the generator it is possible to provide a default providers field by package / scope https://jspm.org/docs/generator/stable/interfaces/GeneratorOptions.html#providers. We don't expose this configuration option to the main CLI yet though - it would likely need either a Would something like that solve this do you think? |
That’s good to know. I might write a small script as a workaround for now. Regarding the CLI I’m gonna give a bit more context on my usage. I’m using There are two scenarios where I update
I would like to use I think the most convenient way to use
Of course, A configuration file in the repository would work, but it would be less convenient if I have to manually edit it. I guess adding a new dependency would involve setting the provider in the configuration and then running I don’t think a CLI option would work for 2. If I understand it correctly, I would need to select the provider for each package like Footnotes
|
Yes, JSPM does not currently store provider information at the granularity level of per-package. Adding this would be a new generator feature that would need to be worked out in detail further. I think it sounds like a worthwhile effort though, transferring to the generator repo as a feature. |
I’m currently stuck between a rock and a hard place: I’m depending on
@shoelace-style/shoelace
,lit
andjquery
.jquery
requires me to use a provider that exposes ES modules but both the esm.sh and jspm providers are broken (for lit and shoelace, respectively). The problem could be addressed if I could use different providers, likeBut running
jspm install
on this import map switches the provider for jquery tojsdelivr
. Maybe this is related to #256? Happy to contribute to the design and implementation of the feature.The text was updated successfully, but these errors were encountered: