Socket
Socket
Sign inDemoInstall

babel-plugin-add-filehash

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-add-filehash

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


Version published
Weekly downloads
505
increased by36.86%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-add-filehash

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

Installation

npm install https://github.com/sth/babel-plugin-add-filehash

Usage

For general info about using Babel plugins see the Babel handbook.

Add the plugin to your projects .babelrc:

{
  "plugins": ["add-filehash"]
}

Via Node API

require("babel-core").transform("code", {
  plugins: ["add-filehash"]
});

Keywords

FAQs

Package last updated on 20 Jan 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc