unstale

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

@unstale/cli on npm

@rspack/plugin-react-refresh 26 changes

Breaking changes 5

  • The default node_modules exclusion was narrowed, changing which modules are excluded by default.

    2.0.2release notes

  • The option was removed because Rspack and Rsbuild dev servers provide built-in error overlays.

    2.0.0release notes

  • The default export was removed; import the plugin as a named export instead.

    2.0.0release notes

  • The package is now pure ESM, so consumers must use an ESM-compatible setup.

    2.0.0release notes

  • The default extension filter moved from include to test; customized include values still apply only to supported JS/TS module extensions by default.

    2.0.0release notes

Fixes and other changes 1

  • The peer dependency range was updated, changing the versions accepted when using the package.

    2.0.2release notes

@rspack/plugin-react-refresh 12 changes

New APIs and options 2

  • The ESM wrapper now supports a default-only module shape.

    1.6.1release notes

  • The default react-refresh-loader can now be overridden.

    1.6.0release notes