gaearon / gaearon/react-hot-loader
[Guide] how to add to create react app without ejecting [for yarn users]
- Dominant language
- JavaScript
- Stars
- 12.2k
- Forks
- 775
- PR merge metrics
- No merged PRs in 30d
Description
Very simple:
Add this to your package.json (Or if you already have resolutions, add it as a new entry)
```
"resolutions": {
"babel-preset-react-app": "npm:babel-preset-react-app-with-rhl"
}
```
What's inside `npm:babel-preset-react-app-with-rhl` package?
See:
https://github.com/Bnaya/create-react-app/compare/master...Bnaya:mod-babel-preset-react-app?expand=1
@theKashey i think it will be very helpful to maintain `babel-preset-react-app-with-rhl` package as part of this project, same as `@hot-loader/react-dom` and keep it up to date with CRA
Also using `resolutions` to point react-dom to `@hot-loader/react-dom` can be handy
Contributor guide
Assessment
This issue has not been assessed yet.