Import maps
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.
Status
Baseline Newly Available (since 2023-03-27)
This feature is expected to reach Baseline Widely Available status on: 2025-09-27
MDN documentation
Specifications
- HTML (#import-maps), from HTML Workstream (WHATWG).
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
Usage (according to Chrome Platform Status)
~0.617% of page loads. More data at chromestatus.
Interop
- Included in Interop 2023
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist