# babel-plugin-legion-hmr

> Hmr plugin for legion.

Latest version **0.1.0** (published 2019-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-legion-hmr
pnpm add babel-plugin-legion-hmr
yarn add babel-plugin-legion-hmr
bun add babel-plugin-legion-hmr
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-01-29 |
| First published | 2017-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | KevinDai |
| Maintainers | duanguang |
| Keywords | legion, babel, babel-plugin, hmr |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-legion-hmr
- npm.io page: https://npm.io/package/babel-plugin-legion-hmr

## Dependencies (1)

- [redbox-react](https://npm.io/package/redbox-react.md) ^1.3.4

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2019-01-29
- 0.0.15 — 2017-04-14

## README

# babel-plugin-legion-hmr

HMR babel plugin for legion.

---

## Install

```bash
$ yarn install babel-plugin-legion-hmr --save-dev
```

## Usage

.babelrc

```javascript
{
  "plugins": ["@kad/babel-plugin-legion-hmr"]
}
```

Configure it in .roadhogrc(configure file for [roadhog](https://github.com/sorrycc/roadhog)) only in development mode, [example](https://github.com/dvajs/dva-example-user-dashboard/blob/d6da33b/.roadhogrc#L24-L30)

```javascript
"env": {
  "development": {
    "extraBabelPlugins": [
      "@kad/babel-plugin-legion-hmr"
    ]
  }
}
```

## Options
* `quiet` —— Don't output any log.
* `disableModel` —— Disable model HMR.

## License

MIT

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