Import maps
Newly available since 2023-03-27
A <script type="importmap">
HTML element provides an import map as a JSON string. An import map controls how the browser should resolve module specifiers when importing JavaScript modules.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 89 Released on 2021-03-02
- Chrome Android 89 Released on 2021-03-02
- Edge 89 Released on 2021-03-04
- Firefox 108 Released on 2022-12-13
- Firefox for Android 108 Released on 2022-12-13
- Safari 16.4 Released on 2023-03-27
- Safari on iOS 16.4 Released on 2023-03-27
Specifications
- HTML Standard (#import-maps), from HTML Workstream (WHATWG).