Socket
Socket
Sign inDemoInstall

babel-plugin-add-filehash

Package Overview
Dependencies
7
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-add-filehash

Makes sure Babel output changes whenever the input file changes.


Version published
Weekly downloads
219
increased by31.93%
Maintainers
1
Install size
3.76 MB
Created
Weekly downloads
 

Readme

Source

babel-plugin-add-filehash

This Babel plugin makes sure the Babel output changes whenever the input file changes, even if it are only trivial/whitespace changes.

This makes sure subsequent tools like webpack reprocess the file and show updated eslint messages/... It specificall works around a webpack bug that loses error messages on "unchanged" files: https://github.com/webpack/webpack/issues/2538

Installation

With npm:

npm install --save-dev babel-plugin-add-filehash

Or with yarn:

yarn --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.

Keywords

FAQs

Last updated on 22 Jan 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc