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

Comparing version 6.9.3 to 6.9.4

2

package.json
{
"name": "babel-plugin-add-filehash",
"version": "6.9.3",
"version": "6.9.4",
"description": "Makes sure Babel output changes whenever the input file changes.",

@@ -5,0 +5,0 @@

@@ -12,14 +12,15 @@ # babel-plugin-add-filehash

With npm:
```shell
npm install babel-plugin-add-filehash
npm install --save-dev babel-plugin-add-filehash
```
## Usage
Or with yarn:
```shell
yarn --dev babel-plugin-add-filehash
```
For general info about using Babel plugins see the [Babel handbook][1].
After installation of the package you need to add the plugin to
your project's `.babelrc`:
### Via `.babelrc` (Recommended)
Add the plugin to your projects `.babelrc`:
```json

@@ -31,11 +32,6 @@ {

### Via Node API
For more general info about using Babel plugins see the [Babel handbook][1].
```javascript
require("babel-core").transform("code", {
plugins: ["add-filehash"]
});
```
[1]: https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/user-handbook.md#manually-specifying-plugins
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