You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can see on the generator.jspm.io site that this is not possible (that is why I've posting this here), and I'm wondering if this is an importmap thing or a JSPM generator thing?
I'm thinking about this after playing with external import maps using the es-module-shim library. If multiple applications reference the same import map, it seems like this would need to be supported.
The text was updated successfully, but these errors were encountered:
Yes this is supported via jspm install react17=react@17 react 18=react@18 kind of thing. The online generator doesn't currently support the = syntax like the CLI, but we certainly could if someone was interested in adding that feature.
Thanks - that CLI actually makes it a little easier to work with external import maps. The link for updating import maps provided by the generator has to be copy/pasted somewhere manually since JSON files can't include comments:
// This doesn't work
{ "imports": { ... }, }
And while I can copy the edit link and include that in a comment field in the JSON that is a manual process. So in other words going beyond some initial experimentation I would probably not use the online generator all that much, and that may be indicative of most generator users.
Having said that, I did get the impression that this was not actually supported by import maps at all. A rookie error...
zachsa
changed the title
Question: Support multiple versions of the same librrary?
Question: Support multiple versions of the same library?
Oct 16, 2023
Is it possible to include multiple versions of the same library within a single importmap? For example, something like this:
I can see on the generator.jspm.io site that this is not possible (that is why I've posting this here), and I'm wondering if this is an importmap thing or a JSPM generator thing?
I'm thinking about this after playing with external import maps using the
es-module-shim
library. If multiple applications reference the same import map, it seems like this would need to be supported.The text was updated successfully, but these errors were encountered: