# babel-plugin-add-filehash

> Makes sure Babel output changes whenever the input file changes.

Latest version **7.6.0** (published 2021-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-add-filehash
pnpm add babel-plugin-add-filehash
yarn add babel-plugin-add-filehash
bun add babel-plugin-add-filehash
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 7.6.0 |
| Published | 2021-01-15 |
| First published | 2017-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | tejp |
| Keywords | babel-plugin, eslint |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-add-filehash
- Repository: https://github.com/sth/babel-plugin-add-filehash
- npm.io page: https://npm.io/package/babel-plugin-add-filehash

## Dependencies (2)

- [@babel/types](https://npm.io/package/@babel/types.md) ^7.6.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.6.0

## Recent versions

- 7.6.0 (latest) — 2021-01-15
- 6.10.1 — 2020-04-16
- 6.10.0 — 2019-09-09
- 6.9.9 — 2019-09-09
- 6.9.8 — 2018-02-25
- 6.9.7 — 2018-02-21
- 6.9.6 — 2018-01-18
- 6.9.5 — 2017-10-21
- 6.9.4 — 2017-01-22
- 6.9.3 — 2017-01-21
- 6.9.2 — 2017-01-21
- 6.9.1 — 2017-01-21
- 6.9.0 — 2017-01-20

## README

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

## Obsolete Use Case

Forcing babel output changes was necessary to make Webpack show updated eslint messages/... on
"unchanged" files until [webpack/webpack#2538][issue2538] got fixed. This happened in
Webpack v3.5.4 and now this plugin isn't necessary anymore for this
use case.

## Installation

With npm:
```shell
npm install --save-dev babel-plugin-add-filehash
```

Or with yarn:
```shell
yarn add --dev babel-plugin-add-filehash
```

After installation of the package you need to add the plugin to
your project's `.babelrc`:

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

For more general info about using Babel plugins see the [Babel handbook][1].

 [issue2538]: https://github.com/webpack/webpack/issues/2538
 [1]: https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/user-handbook.md#manually-specifying-plugins

---
_Source: https://npm.io/package/babel-plugin-add-filehash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
