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 stale · no recent hits
total hits 18
actors 6 distinct systems
last hit 17d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇸🇬 Singapore · 🇨🇳 China · 🇩🇪 Germany
Resources
API endpoints
full doc /v1/registry/babel-plugin-import-map
compatibility /v1/registry/babel-plugin-import-map/compatibility