{"library":"babel-plugin-import-map","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","Babel","Import","Map","ESM","Modules","ECMAScript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-import-map","imports":["import * as plugin from 'babel-plugin-import-map'","plugin.load('./import-map.json')","plugin.plugin()","plugin.clear()"]},{"cmd":"yarn add babel-plugin-import-map","imports":[]},{"cmd":"pnpm add babel-plugin-import-map","imports":[]}],"homepage":null,"github":"https://github.com/trygve-lie/babel-plugin-import-map","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-import-map","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-import-map/compatibility"}}