Loading...
<script type="module" src="app.js"></script>
<script type="importmap">
{ "imports": { "lodash": "/lib/lodash.js" } }
</script><script type="importmap">
{ "imports": { "lodash": "/lib/lodash.js" } }
</script>
<script type="module" src="app.js"></script>The import map must be parsed before any module that uses a bare specifier.
<script type='module'> that uses it.No. The src attribute is not supported for import maps, so the JSON must be inline.
Yes. Specifiers in import() are resolved through the import map too.
scopes maps specifiers differently for modules under a given URL prefix, for example to use another version of a package.