babel-plugin-add-filehash
Advanced tools
Makes sure Babel output changes whenever the input file changes.
Weekly downloads
Changelog
v7.6.0, 2021-01-15 (compare to v6.10.1)
Readme
This Babel plugin makes sure the Babel output changes whenever the input file changes, even if it are only trivial/whitespace changes.
Forcing babel output changes was necessary to make Webpack show updated eslint messages/... on "unchanged" files until webpack/webpack#2538 got fixed. This happened in Webpack v3.5.4 and now this plugin isn't necessary anymore for this use case.
With npm:
npm install --save-dev babel-plugin-add-filehash
Or with yarn:
yarn add --dev babel-plugin-add-filehash
After installation of the package you need to add the plugin to
your project's .babelrc
:
{
"plugins": ["add-filehash"]
}
For more general info about using Babel plugins see the Babel handbook.
Makes sure Babel output changes whenever the input file changes.
The npm package babel-plugin-add-filehash receives a total of 234 weekly downloads. As such, babel-plugin-add-filehash popularity was classified as not popular.
We found that babel-plugin-add-filehash demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.