About 3,150,000 results
Open links in new tab
  1. <script type="importmap"> - HTML | MDN - MDN Web Docs

    Nov 30, 2025 · The importmap value of the type attribute of the <script> element indicates that the body of the element contains an import map. An import map is a JSON object that allows developers to …

  2. What's script type importmap used for? - Stack Overflow

    The importmap in your code is essentially setting up a shortcut from the string "three" to the actual .js file URL. What you should be writing in your <script type="module"> is import * as three from "three"; …

  3. JavaScript Import Maps Available in All Major Browsers

    Apr 5, 2023 · Using the <script type="importmap"> tag and the import keyword provides several benefits over older, non-modular approaches to JavaScript development. It allows you to clearly and explicitly …

  4. JavaScript import maps are now supported cross-browser - web.dev

    Mar 28, 2023 · A modern way to use ES modules is with the <script type="importmap"> tag. This tag allows you to define a mapping of external module names to their corresponding URLs, which makes …

  5. How to Dynamically Import JavaScript with Import Maps

    Oct 14, 2021 · In this tutorial, you’ll use import maps and JavaScript modules to import code without build tools. You’ll create a basic application that will display a message and you’ll create an import …

  6. javascript - Error using an importmap: "Error while transforming file ...

    Aug 3, 2023 · I have read something about having to use something like Babel to transpile, but will this only work with this extra step? The aim is to keep it as simple as possible. developer.mozilla.org/en …

  7. ESM Import Map - tomashubelbauer.github.io

    This page demonstrates the usage of import maps. In Firefox, be sure to flip dom.importMaps.enabled on in the about:config configuration page. Learn about import maps here. This page references a ES …

  8. <script> type attribute - HTML | MDN

    Sep 27, 2025 · JavaScript MIME types are listed in the IANA media types specification. This value indicates that the body of the element contains an import map. The import map is a JSON object that …

  9. Manage your JavaScript with Import Map | web.dev

    Oct 24, 2024 · A modern way to use JavaScript modules is with the script type="importmap" tag. This lets you to define a mapping of external module names to their corresponding URLs, making it easier …

  10. script.type.importmap - HTML - W3cubDocs

    <script type="importmap"> The importmap value of the type attribute of the <script> element indicates that the body of the element contains an import map. An import map is a JSON object that allows …