{"library":"rollup-plugin-import-map","title":"rollup-plugin-import-map","description":"A Rollup plugin to apply import map mappings during the build process, enabling module resolution according to the WICG import map specification. Current stable version is v3.0.0 (ESM-only, supports Rollup 3). There is also a v4.0.0-next.1 pre-release with full import map support but significant API changes. The plugin wraps the `@import-maps/generate` library to resolve bare specifiers to URLs defined in an import map JSON. It is one of few Rollup plugins that implement import map resolution, distinct from `@rollup/plugin-node-resolve` which resolves to node_modules. Release cadence has been low; breaking changes between major versions require migration attention.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-import-map"],"cli":null},"imports":["import importMapPlugin from 'rollup-plugin-import-map'","import { rollup } from 'rollup'","import importMapPlugin from 'rollup-plugin-import-map'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import importMapPlugin from 'rollup-plugin-import-map';\nimport { rollup } from 'rollup';\n\nconst build = await rollup({\n  input: 'src/index.js',\n  plugins: [\n    importMapPlugin({\n      imports: {\n        'lodash': 'https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.js'\n      }\n    })\n  ]\n});\n\nawait build.write({ dir: 'dist', format: 'es' });\nconsole.log('Build complete');","lang":"javascript","description":"Configures Rollup with import-map plugin to map 'lodash' to a CDN URL, then bundles to 'dist'.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}