A Rollup plugin that writes output content hashes to a JSON file. Version 1.0.0 is the current stable release with no ongoing update cadence. It differentiates by using hasha for hashing and supporting custom output file paths, but lacks active maintenance or documentation.
npm install rollup-plugin-bundle-hashNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup of rollup-plugin-bundle-hash with rollup, outputting hashes to dist/hashes.json.
Switch to rollup-plugin-hash or a more actively maintained plugin.
Use with output.write() or output.generate() after rollup.generate().
Provide absolute path or path relative to process.cwd().
Run npm install hasha
Use ES module import (import bundleHash from 'rollup-plugin-bundle-hash') or enable CJS interop.
Set hashLength to an integer within 1-64.