-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
Chrome supports inline import maps:
<script type="importmap">
{
"imports": {
"cubing/alg": "https://cdn.cubing.net/js/cubing/alg",
"cubing/twisty": "https://cdn.cubing.net/js/cubing/twisty"
}
}
</script>But not this:
<script type="importmap" src="import-map.importmap"></script>If you try to use the latter, you get an error:
External import maps are not yet supported.
Import maps are all about ergonomics, and being able to reuse an import map without adding it into the source of every page is an important part of that functionality. It's always been in the spec, it just hasn't been implemented by any browsers yet.
Would it make more sense to annotate https://caniuse.com/import-maps with "partial support" (for browsers that support inline import maps) or to add a separate entry for external import maps?
Sora2455, bstoyles, dvjeshka, dvelasquez, jacekkarczmarczyk and 18 more