{"id":22003,"library":"rollup-plugin-entrypoint-hashmanifest","title":"rollup-plugin-entrypoint-hashmanifest","description":"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.","status":"maintenance","version":"0.1.2","language":"javascript","source_language":"en","source_url":"https://github.com/surma/rollup-plugin-entrypoint-hashmanifest","tags":["javascript"],"install":[{"cmd":"npm install rollup-plugin-entrypoint-hashmanifest","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-entrypoint-hashmanifest","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-entrypoint-hashmanifest","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency: works with Rollup's bundle output hook","package":"rollup","optional":false}],"imports":[{"note":"CommonJS require works but ESM import is preferred for modern Rollup configs.","wrong":"const entrypointHashmanifest = require('rollup-plugin-entrypoint-hashmanifest')","symbol":"default","correct":"import entrypointHashmanifest from 'rollup-plugin-entrypoint-hashmanifest'"},{"note":"This package uses a default export; named import will fail.","wrong":"import { entrypointHashmanifest } from 'rollup-plugin-entrypoint-hashmanifest'","symbol":"entrypointHashmanifest","correct":"import entrypointHashmanifest from 'rollup-plugin-entrypoint-hashmanifest'"},{"note":"The package does not ship TypeScript types; you may need to declare module or use @types.","wrong":null,"symbol":"type","correct":"import type { RollupPluginEntrypointHashmanifestOptions } from 'rollup-plugin-entrypoint-hashmanifest'"}],"quickstart":{"code":"// rollup.config.js\nimport entrypointHashmanifest from 'rollup-plugin-entrypoint-hashmanifest';\n\nexport default {\n  input: ['src/main.js', 'src/worker.js'],\n  output: {\n    dir: 'dist',\n    format: 'es',\n    entryFileNames: '[name]-[hash].js',\n    chunkFileNames: '[name]-[hash].js'\n  },\n  plugins: [\n    entrypointHashmanifest({\n      manifestName: 'my-manifest.json'\n    })\n  ]\n};","lang":"javascript","description":"Configures Rollup to emit a hash manifest file mapping entrypoints to their hashed outputs."},"warnings":[{"fix":"Specify a relative path like 'manifest.json' instead of '/absolute/path/manifest.json'.","message":"The manifestName option must be a valid path within the output directory; otherwise the file may be written to unexpected location.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"If you need all output files in the manifest, consider using @rollup/plugin-manifest or a custom hook.","message":"The plugin only generates a manifest for entrypoints, not for all output files. Chunk files are not included.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Test with your Rollup version. For Rollup >=3, use a different plugin like @rollup/plugin-manifest.","message":"The package has not been updated since 2018 and may not work with Rollup >=2.0 due to hook changes.","severity":"deprecated","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run npm install rollup-plugin-entrypoint-hashmanifest and ensure import path is correct.","cause":"Package not installed or wrong import path.","error":"Error: Cannot find module 'rollup-plugin-entrypoint-hashmanifest'"},{"fix":"Use import entrypointHashmanifest from 'rollup-plugin-entrypoint-hashmanifest' (no curly braces).","cause":"Named import used instead of default import.","error":"TypeError: entrypointHashmanifest is not a function"},{"fix":"Add () after plugin name: entrypointHashmanifest()","cause":"Plugin added as a reference instead of calling the function.","error":"The plugin \"entrypointHashmanifest\" could not be called. Did you forget to call it?"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}