Skip to content

dvajs/babel-plugin-dva-hmr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-dva-hmr

NPM version Build Status Coverage Status NPM downloads

HMR babel plugin for dva.


Install

$ npm install babel-plugin-dva-hmr [email protected] --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