Rollup plugin for bundling modular libraries with multiple entry points and glob support, preserving the source directory structure in the output. Version 1.9.0 is the latest stable release, maintained with semantic versioning and TypeScript types. It is now deprecated in favor of modular-library for Node.js >=22, and Rollup's native preserveModules is recommended otherwise. Key differentiators: glob patterns in input, relative path preservation, and transformOutputPath callback. Release cadence is irregular with features and fixes as needed.
npm install rollup-plugin-multi-inputVerified import paths — ran on the pinned version, not inferred.
Configures Rollup with multi-input plugin using glob pattern, relative path, and output path transformation.
Migrate to modular-library (Node >=22) or use output.preserveModules: true.
Use import or dynamic import(). For Jest or older Node, set type: 'module' or use esm wrapper.
Use import multiInput from 'rollup-plugin-multi-input' (default import).
Use string inputs for globs, or map object values explicitly.
Update Node.js to 16 or later.
Use import multiInput from 'rollup-plugin-multi-input'; in an ES module context.
Use default import: import multiInput from 'rollup-plugin-multi-input'.
Use string or array of strings for globs.