Home

Awesome

babel-plugin-dva-hmr

NPM version Build Status Coverage Status NPM downloads

HMR babel plugin for dva.


Install

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

Usage

.babelrc

{
  "plugins": ["dva-hmr"]
}

Configure it in .roadhogrc(configure file for roadhog) only in development mode, example

"env": {
  "development": {
    "extraBabelPlugins": [
      "dva-hmr"
    ]
  }
}

Options

License

MIT