Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(*): setup babel-preset-react-hmre - enhancement of previous commit
As exposed in https://github.com/danmartinez101/babel-preset-react-hmre this preset ships the following transformers: * babel-plugin-react-transform (the babel plugin that makes it all possible): https://github.com/gaearon/babel-plugin-react-transform * react-transform-hmr (transformer in charge of hot module reloading): https://github.com/gaearon/react-transform-hmr * react-transform-catch-errors (will show runtime errors on screen): https://github.com/gaearon/react-transform-catch-errors * redbox-react (the component used by catch-errors): https://github.com/KeywordBrain/redbox-react This preset abstracts all those plugins in one package. All you have to do to have your React project ready for hor reload on babel v6 is now: npm install babel-preset-react-hmre --save-dev And set your .babelrc to (the preset part being important): { "presets": ["react", "es2015"], "env": { "development": { "presets": ["react-hmre"] } } } If you prefer to know exactly what you're using (not a preset that abstracts a bunch of plugins, take a look at #90c6088 )
- Loading branch information