New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace react-hot-loader with react-refresh #3942
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm:)
@@ -39,6 +40,7 @@ module.exports = (env, argv) => { | |||
|
|||
plugins: [ | |||
!isProduction && new webpack.HotModuleReplacementPlugin(), | |||
!isProduction && new ReactRefreshWebpackPlugin(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so? Any reason why it wouldn't?
In my testing it works fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't looked too much at this but I would think fast refresh needs some we apis to send the updated code? Don't know how it would do this in node? But if it's tested and its documented then that's great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I guess. Near impossible to actually understand webpack conf
Perhaps deploy this branch to prod at night time to see if it actually works? :)
Description
Faster, better and crashes less:)
As recommended by the author of
react-hot-loader
: https://github.com/gaearon/react-hot-loader#moving-towards-next-stepResult
Better dev experience
Testing
Please describe what and how the changes have been tested, and provide instructions to reproduce if necessary.
Resolves ... (either GitHub issue or Linear task)