# babel-plugin-dva-hmr

> Hmr plugin for dva.

Latest version **0.4.2** (published 2019-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-dva-hmr
pnpm add babel-plugin-dva-hmr
yarn add babel-plugin-dva-hmr
bun add babel-plugin-dva-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.4.2 |
| Published | 2019-05-22 |
| First published | 2016-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chencheng |
| Maintainers | sorrycc |
| Keywords | dva, babel, babel-plugin, hmr |

## Links

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

## 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.4.2 (latest) — 2019-05-22
- 0.4.1 — 2017-12-30
- 0.4.0 — 2017-11-05
- 0.3.2 — 2017-01-12
- 0.3.1 — 2017-01-12
- 0.3.0 — 2017-01-12
- 0.2.1 — 2016-12-14
- 0.2.0 — 2016-10-19
- 0.1.0 — 2016-08-06

## README

# babel-plugin-dva-hmr

[![NPM version](https://img.shields.io/npm/v/babel-plugin-dva-hmr.svg?style=flat)](https://npmjs.org/package/babel-plugin-dva-hmr)
[![Build Status](https://img.shields.io/travis/dvajs/babel-plugin-dva-hmr.svg?style=flat)](https://travis-ci.org/dvajs/babel-plugin-dva-hmr)
[![Coverage Status](https://img.shields.io/coveralls/dvajs/babel-plugin-dva-hmr.svg?style=flat)](https://coveralls.io/r/dvajs/babel-plugin-dva-hmr)
[![NPM downloads](http://img.shields.io/npm/dm/babel-plugin-dva-hmr.svg?style=flat)](https://npmjs.org/package/babel-plugin-dva-hmr)

HMR babel plugin for dva.

---

## Install

```bash
$ npm install babel-plugin-dva-hmr redbox-react@1.x --save-dev
```

## Usage

.babelrc

```javascript
{
  "plugins": ["dva-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": [
      "dva-hmr"
    ]
  }
}
```

## Options
* `container` —— Specify the root element for `app.start()`.
* `quiet` —— Don't output any log.
* `disableModel` —— Disable model HMR.

## License

MIT

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