npm.io
0.1.0 • Published 7 years ago

babel-plugin-legion-hmr

Licence
MIT
Version
0.1.0
Deps
1
Size
11 kB
Vulns
0
Weekly
0

babel-plugin-legion-hmr

HMR babel plugin for legion.


Install

$ yarn install babel-plugin-legion-hmr --save-dev

Usage

.babelrc

{
  "plugins": ["@kad/babel-plugin-legion-hmr"]
}

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

"env": {
  "development": {
    "extraBabelPlugins": [
      "@kad/babel-plugin-legion-hmr"
    ]
  }
}

Options

  • quiet —— Don't output any log.
  • disableModel —— Disable model HMR.

License

MIT

Keywords