Registry / devops / rollup-plugin-output-manifest

rollup-plugin-output-manifest

JSON →
library2.0.0jsnpmunverified

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-manifest
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-OUTP
R
rollup-plugin-output-manifest
devopsjavascriptv2.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

outputManifest
import outputManifest from 'rollup-plugin-output-manifest'
import { outputManifest } from 'rollup-plugin-output-manifest'
Module uses default export; named import will fail.
outputManifest (default export)
import outputManifest from 'rollup-plugin-output-manifest'
const outputManifest = require('rollup-plugin-output-manifest')
ESM-only package; require() is not supported. In CommonJS, use dynamic import().
type OutputManifestOptions
import type { OutputManifestOptions } from 'rollup-plugin-output-manifest'
import { OutputManifestOptions } from 'rollup-plugin-output-manifest'
TypeScript type exports are only available via isolated type import.

Shows basic setup of rollup-plugin-output-manifest with common options: custom filename, public path prefix, and merge behavior.

import outputManifest from 'rollup-plugin-output-manifest'; export default { input: 'src/index.js', output: { dir: 'dist', format: 'esm', }, plugins: [ outputManifest({ fileName: 'manifest.json', publicPath: '/assets/', isMerge: false, }), ], };
Debug
Known issues
breakingIn v2.0.0, the default filter now includes OutputAsset by default. Previous behavior filtered only OutputChunk.
fix
If you relied on exclusion of assets, provide a custom filter: outputManifest({ filter: bundle => bundle.type === 'chunk' })
affects: >=2.0.0
breakingIn v2.0.0, default import is required. Named exports are not available.
fix
Use default import: import outputManifest from 'rollup-plugin-output-manifest'
affects: >=2.0.0
gotchaThe plugin modifies Rollup's output hit map by writing manifest.json as an asset; conflicts if another plugin writes to same filename.
fix
Ensure fileName option is unique or set isMerge to true to append entries.
affects: *
deprecatedOption nameWithExt default changed from false to true in a minor version; the README shows true as default but may be misleading.
fix
Check your config: if you need keys without extension, set nameWithExt: false.
affects: >=2.0.0
Errors
Common errors & fixes
SyntaxError: The requested module 'rollup-plugin-output-manifest' does not provide an export named 'default'
Using CommonJS require() instead of ESM import.
fix
Switch to ESM or use dynamic import: import('rollup-plugin-output-manifest').then(m => m.default()).
TypeError: outputManifest is not a function
Named import instead of default import.
fix
Use import outputManifest from 'rollup-plugin-output-manifest' (without braces).
Error: The plugin 'output-manifest' tried to add a file that already exists: manifest.json
Two plugin instances with same fileName or conflict with another plugin.
fix
Set fileName to a unique value or enable isMerge: true.
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
rollup-plugin-output-manifest — npm install rollup-plugin-output-manifest · libregistry