babel-plugin-dva-hmr-es6-modules-compatibility
v0.3.3
Published
Hmr plugin for dva.Compatibility with ES6 Module
Downloads
3
Readme
babel-plugin-dva-hmr
HMR babel plugin for dva.
因 Webpack 2 和 Babel 6 都为了兼容 ES6 Module,作出了修正。故修改此模块兼容相关改动。 相关资源
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 forapp.start()
.quiet
—— Don't output any log.disableModel
—— Disable model HMR.
License
MIT