Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
babel-plugin-add-filehash
Advanced tools
Adds a hash of the input file content to the output file. This ensures the output file changes even if there were only whitespace changes or other minor syntactical changes in the input. When used from webpack, this makes sure webpack re-evaluates the fil
This Babel plugin makes sure the Babel output changes whenever the input file changes. This works around a webpack bug that loses error messages on "unchanged" files: https://github.com/webpack/webpack/issues/2538
npm install https://github.com/sth/babel-plugin-add-filehash
For general info about using Babel plugins see the Babel handbook.
.babelrc
(Recommended)Add the plugin to your projects .babelrc
:
{
"plugins": ["add-filehash"]
}
require("babel-core").transform("code", {
plugins: ["add-filehash"]
});
FAQs
Makes sure Babel output changes whenever the input file changes.
The npm package babel-plugin-add-filehash receives a total of 433 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 because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.