babel-plugin-import-map
JSON →A Babel plugin to apply import map mappings to ECMAScript modules ahead of time. Current stable version is 1.0.0. This plugin allows transforming bare import specifiers (e.g., 'lit-html') to absolute URLs (e.g., CDN URLs) at build time, based on one or more import map files. It supports loading import maps from JSON files or plain objects, and can merge multiple maps. Unlike runtime import map polyfills, this works purely at the build level, making it suitable for production bundles. Once loaded, the plugin replaces import specifiers statically during Babel transpilation.
Traffic · last 30 days ↓43% vs prev 7d
total hits 23
actors 7 distinct systems
last hit 1d ago ByteDance
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇸🇬 Singapore
Resources
API endpoints
full doc /v1/registry/babel-plugin-import-map
compatibility /v1/registry/babel-plugin-import-map/compatibility