0.1.0 • Published 5 years ago

babel-plugin-legion-hmr v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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