demo · v133
Multiple Import Maps
Two <script type="importmap"> blocks are declared in the head. Map A defines greet and shared. Map B adds farewell. Both work — pre-133 the second map would throw.
click a button above
checking support…
the HTML
<script type="importmap">
{ "imports": { "greet": "/a.js", "shared": "/shared-a.js" } }
</script>
<script type="importmap">
{ "imports": { "farewell": "/b.js" } }
</script>
see also
- Multiple import maps — feature index
- ChromeStatus entry
- WICG import-maps