1.0.4 • Published 10 years ago
babel-plugin-react-hot v1.0.4
babel-plugin-react-hot
Babel plugin using react-hot-api to add hot reloading to React.createClass and all ES6 classes with a render method.
Most of this can be accredited to babel-plugin-react-hotify. This particular repo was made to support the original react-hot-api as a Babel plugin.
Installation
jspm install babel-plugin-react-hot=github:loggur/babel-plugin-react-hotor
jspm install babel-plugin-react-hot=npm:babel-plugin-react-hotor
npm install babel-plugin-react-hotUsage
Simply add the module to either .babelrc or options.plugins for babel.transform. See Babel's plugin docs.
To use this with webpack without manually adding module.hot.accept() to the bottom of your modules, use webpack-module-hot-accept.
License
MIT