{"id":19014,"library":"babel-plugin-add-filehash","title":"babel-plugin-add-filehash","description":"A Babel plugin that forces output to change whenever the input file changes, even for trivial/whitespace changes. Version 7.6.0 is current, but the primary use case (forcing Webpack to show updated eslint messages on unchanged files) has been obsolete since Webpack v3.5.4 fixed the underlying issue. The plugin remains functional for anyone needing deterministic output changes, but it is effectively a legacy tool. It has no dependencies beyond Babel itself and is a zero-config plugin.","status":"maintenance","version":"7.6.0","language":"javascript","source_language":"en","source_url":"https://github.com/sth/babel-plugin-add-filehash","tags":["javascript","babel-plugin","eslint"],"install":[{"cmd":"npm install babel-plugin-add-filehash","lang":"bash","label":"npm"},{"cmd":"yarn add babel-plugin-add-filehash","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-plugin-add-filehash","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is a Babel plugin, not imported directly in user code. Used via .babelrc or babel.config.js as a string reference.","wrong":"import addFilehash from 'babel-plugin-add-filehash'","symbol":"plugin (default)","correct":"module.exports = {\n  plugins: ['add-filehash']\n}"}],"quickstart":{"code":"// .babelrc or babel.config.js\n{\n  \"plugins\": [\n    [\"add-filehash\", {\n      // Optional: specify which comment to add hash to\n      // Default: adds hash as file comment\n    }]\n  ]\n}","lang":"javascript","description":"Shows how to enable the plugin in Babel configuration."},"warnings":[{"fix":"Remove plugin from configuration if using Webpack v3.5.4+.","message":"Plugin is unnecessary for modern Webpack (>=3.5.4). Original use case fixed.","severity":"deprecated","affected_versions":">=7.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Verify plugin is correctly listed in plugins array. Check for other plugins that may suppress output.","cause":"Plugin may not add hash if file already contains output hash or if configuration conflicts.","error":"Error: [BABEL] unknown: The filehash plugin hasn't generated any changes. (While processing: /path/to/file.js)"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}