{"library":"rollup-plugin-import-manager","title":"rollup-plugin-import-manager","description":"A Rollup plugin for programmatically manipulating import statements in ES6, CommonJS, and dynamic imports. Version 0.6.4 is the latest stable release, with weekly updates. Key features include adding, removing, renaming, and modifying imports, members, and modules. Supports regex selection, cut-and-paste, and debug output. Differentiates from other import plugins by supporting all three module systems and offering granular control via units and actions.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-import-manager"],"cli":null},"imports":["import importManager from 'rollup-plugin-import-manager'","import { importManager } from 'rollup-plugin-import-manager'","import type { Unit } from 'rollup-plugin-import-manager'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import importManager from 'rollup-plugin-import-manager';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'esm'\n  },\n  plugins: [\n    importManager({\n      units: [\n        {\n          module: './old-module',\n          actions: [\n            { remove: true }\n          ]\n        },\n        {\n          createModule: './new-module',\n          insert: { after: './existing-module' },\n          actions: [\n            { add: { name: 'newExport' } }\n          ]\n        }\n      ]\n    })\n  ]\n};","lang":"typescript","description":"Demonstrates removing an import from './old-module' and adding a new import from './new-module' after './existing-module'.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}