Rollup plugin that generates a JSON manifest mapping source file names to their output filenames, inspired by webpack-manifest-plugin. Current stable version is 2.0.0, released with support for output assets and customizable key/value decoration. Key differentiators include flexible options for filtering, mapping, sorting bundles, and custom serialization. It is ESM-only with TypeScript type definitions. Suitable for Rollup builds requiring a manifest for asset references, unlike alternatives like @rollup/plugin-output which have different scoping.
npm install rollup-plugin-output-manifestVerified import paths — ran on the pinned version, not inferred.
Shows basic setup of rollup-plugin-output-manifest with common options: custom filename, public path prefix, and merge behavior.
If you relied on exclusion of assets, provide a custom filter: outputManifest({ filter: bundle => bundle.type === 'chunk' })Use default import: import outputManifest from 'rollup-plugin-output-manifest'
Ensure fileName option is unique or set isMerge to true to append entries.
Check your config: if you need keys without extension, set nameWithExt: false.
Switch to ESM or use dynamic import: import('rollup-plugin-output-manifest').then(m => m.default()).Use import outputManifest from 'rollup-plugin-output-manifest' (without braces).
Set fileName to a unique value or enable isMerge: true.
No dependency data recorded yet.