npm / @rspack/plugin-react-refresh
@rspack/plugin-react-refresh
What changed in @rspack/plugin-react-refresh 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
5 breaking2 new APIs and options1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@rspack/plugin-react-refresh 26 changes
Breaking changes 5
The default node_modules exclusion was narrowed, changing which modules are excluded by default.
The option was removed because Rspack and Rsbuild dev servers provide built-in error overlays.
The default export was removed; import the plugin as a named export instead.
The package is now pure ESM, so consumers must use an ESM-compatible setup.
The default extension filter moved from
includetotest; customizedincludevalues still apply only to supported JS/TS module extensions by default.
Fixes and other changes 1
The peer dependency range was updated, changing the versions accepted when using the package.
@rspack/plugin-react-refresh 12 changes
New APIs and options 2
The ESM wrapper now supports a default-only module shape.
The default react-refresh-loader can now be overridden.