What Is an Import Map?
An import map is a JSON block, defined in the page, that tells the browser how to resolve module specifiers like "react" to concrete URLs. It lets native ES module imports use bare names without a build step rewriting them. Import maps also enable swapping a dependency version by changing one mapping.
Why it matters
Native browser modules normally require full URLs, which is awkward for shared libraries. Import maps give a single place to control resolution, supporting bundler-free setups and centralized version pinning.
Related guides
What Is a Dynamic Import?A dynamic import loads a JavaScript module on demand at runtime, returning a promise, which enables code spli…
What Is Module Federation?Module federation lets separately built and deployed JavaScript applications share code at runtime, loading e…
What Is a Service Worker Cache?A service worker cache is a programmable store that a service worker uses to intercept requests and serve res…