Basic hot reloading with webpack 5 not working properly
- It is loading the entire page
-
Operating System: macOS Big Sur 11.2
-
Node Version: v14.15.4
-
NPM Version: 6.14.10
-
webpack Version: ^5.19.0
-
webpack-dev-server Version: ^4.0.0-beta.0
-
Browser: Google Chrome Version 88
-
This is a bug
Repository link: https://github.com/Ridermansb/webpack5Hot
master
branch it's using only basic webpack-dev-server configuration without any pluginsreact-hot-loader
branch it's using react-hot-loader plugin. Pull Request #1react-refresh-webpack-plugin
branch it's using pmmmwh/react-refresh-webpack-plugin webpack plugin. Pull Request #2
In all case... should not reload the page and only reload the portion that's changed
It's Always reloading the entire page.
Just clone the repository ridermansb/webpack5Hot
npm install
npm start
And try update Header
component