Registry / devops / rollup-plugin-entrypoint-hashmanifest

rollup-plugin-entrypoint-hashmanifest

JSON →
library0.1.2jsnpmunverified

A Rollup plugin that generates a hash manifest JSON file for each entrypoint, mapping original entry filenames to their hashed output filenames. Version 0.1.2, last updated in 2018, with no recent releases. It produces a manifest compatible with hashmark and injectassets tools. Alternatives include @rollup/plugin-manifest or custom Rollup hook scripts, but this plugin is simpler for entrypoint-only hashing.

npm install rollup-plugin-entrypoint-hashmanifest
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-ENTR
R
rollup-plugin-entrypoint-hashmanifest
devopsjavascriptv0.1.2
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.

default
import entrypointHashmanifest from 'rollup-plugin-entrypoint-hashmanifest'
const entrypointHashmanifest = require('rollup-plugin-entrypoint-hashmanifest')
CommonJS require works but ESM import is preferred for modern Rollup configs.
entrypointHashmanifest
import entrypointHashmanifest from 'rollup-plugin-entrypoint-hashmanifest'
import { entrypointHashmanifest } from 'rollup-plugin-entrypoint-hashmanifest'
This package uses a default export; named import will fail.
type
import type { RollupPluginEntrypointHashmanifestOptions } from 'rollup-plugin-entrypoint-hashmanifest'
The package does not ship TypeScript types; you may need to declare module or use @types.

Configures Rollup to emit a hash manifest file mapping entrypoints to their hashed outputs.

// rollup.config.js import entrypointHashmanifest from 'rollup-plugin-entrypoint-hashmanifest'; export default { input: ['src/main.js', 'src/worker.js'], output: { dir: 'dist', format: 'es', entryFileNames: '[name]-[hash].js', chunkFileNames: '[name]-[hash].js' }, plugins: [ entrypointHashmanifest({ manifestName: 'my-manifest.json' }) ] };
Debug
Known issues
gotchaThe manifestName option must be a valid path within the output directory; otherwise the file may be written to unexpected location.
fix
Specify a relative path like 'manifest.json' instead of '/absolute/path/manifest.json'.
affects: >=0.1.0
gotchaThe plugin only generates a manifest for entrypoints, not for all output files. Chunk files are not included.
fix
If you need all output files in the manifest, consider using @rollup/plugin-manifest or a custom hook.
affects: >=0.1.0
deprecatedThe package has not been updated since 2018 and may not work with Rollup >=2.0 due to hook changes.
fix
Test with your Rollup version. For Rollup >=3, use a different plugin like @rollup/plugin-manifest.
affects: >=0.1.0
Errors
Common errors & fixes
Error: Cannot find module 'rollup-plugin-entrypoint-hashmanifest'
Package not installed or wrong import path.
fix
Run npm install rollup-plugin-entrypoint-hashmanifest and ensure import path is correct.
TypeError: entrypointHashmanifest is not a function
Named import used instead of default import.
fix
Use import entrypointHashmanifest from 'rollup-plugin-entrypoint-hashmanifest' (no curly braces).
The plugin "entrypointHashmanifest" could not be called. Did you forget to call it?
Plugin added as a reference instead of calling the function.
fix
Add () after plugin name: entrypointHashmanifest()
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies
rolluprequiredpeer dependency: works with Rollup's bundle output hook
Agent activity
8 hits · last 30 days
node
6
Resources
rollup-plugin-entrypoint-hashmanifest — npm install rollup-plugin-entrypoint-hashmanifest · libregistry