babel-plugin-legion-hmr

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i babel-plugin-legion-hmr

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

10.9 kB

Total Files

3

Last publish

Collaborators

  • duanguang