Skip to content
Hmr babel plugin for dva.
Branch: master
Clone or download
Latest commit fbcb09c Dec 30, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src feat: support require(...).default Nov 30, 2017
test
.babelrc add testcase Jan 12, 2017
.gitignore
.travis.yml only test node 8 Nov 5, 2017
Makefile
README.md 🤔 Dec 27, 2016
package.json 0.4.1 Dec 30, 2017

README.md

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

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

License

MIT

You can’t perform that action at this time.