React Fast Refresh plugin and loader for webpack
webpack-dev-middleware
We no longer want to assume anything about your webpack configuration (e.g. file extensions for your React components). We also want to use as little as possible of webpack's internal API.
For this reason, we no longer trying to put everything together for you. The loader and entry runtime have been separated from the webpack plugin. Users will need to manually add each one to their configuration. Besides significantly simplifying our code, this change will help keep compatibility with future webpack versions and with more advanced/obscure configurations.
Version was bumped to v5 in order to match minimum compatible webpack version.
[email protected]
module.hot.invalidate