Rollup plugin that allows a single Rollup configuration to output to multiple destinations with different formats and plugins. Current version 1.0.2, released in 2018, with no recent updates. It eliminates the need for multiple config files by accepting an array of output configurations, each with its own dest, format, and optional plugins. Useful for libraries that need to distribute ESM, CJS, and IIFE bundles. Note: this plugin uses Rollup's legacy `entry`/`dest` config style and may require adaptation for modern Rollup versions. It has 0 dependencies and is unmaintained since 2020.
npm install rollup-plugin-multi-destNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Rollup to output an ES module as primary dest, plus additional CJS and IIFE bundles using the multidest plugin.
Migrate to Rollup's built-in output array feature: export default { input: 'src/index.js', output: [{ file: 'dist/bundle.esm.js', format: 'es' }, { file: 'dist/bundle.cjs.js', format: 'cjs' }], plugins: [...] }Use Rollup's native multiple output feature instead of this plugin.
Ensure all necessary plugins are included in the multidest array for each output, or rely on the parent plugins only.
Use Rollup's newer output array which supports sourcemap per output.
Use a Rollup version <0.60 or switch to native multiple output.
Either revert to legacy Rollup config or use Rollup's output array instead of the plugin.
No dependency data recorded yet.