Remove `react-hot-loader`
See original GitHub issueIt causes way more issues than it fixes.
It’s a matter of removing it from babel options
plugins: [dev && !isServer && hotLoaderItem, dev && reactJsxSourceItem].filter(Boolean)
becomes
plugins: [dev && reactJsxSourceItem].filter(Boolean)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Trying to remove 'react-hot-loader' from final bundle using ...
I want to remove react-hot-loader from my production bundle. And I also want a single App.js file. That should work for DEV and...
Read more >react-hot-loader - npm
Please remove React-Hot-Loader if Fast Refresh is currently supported on your environment. React Native - supports Fast Refresh since 0.61.
Read more >Remove `react-hot-loader` · Issue #4494 · vercel/next.js - GitHub
It's a matter of removing it from babel options plugins: [dev && !isServer && hotLoaderItem, dev && reactJsxSourceItem].filter(Boolean) ...
Read more >Getting Started · React Hot Loader - Dan gaearon
React Hot Loader is a plugin that allows React components to be live reloaded without the loss of state. It works with Webpack...
Read more >Hot Module Replacement - webpack
Luckily, there are a lot of loaders out there (some of which are mentioned below) that will make hot module replacement much easier....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I confirm, it works like a charm with
@material-ui/styles
. I have also the feeling that the end-to-end time for hot reloading has greatly improved 🚀 .It’s a little more involved than just removing the babel plugin. Also requires to rewrite the provider component they have to handle errors with componentDidCatch. I’m planning to fix this after a bug fix when using _app.js