babel-plugin-add-filehash
Advanced tools
Comparing version 6.9.3 to 6.9.4
{ | ||
"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 | ||
1976
36