Sourced from @vitejs/plugin-react's releases.
plugin-react@6.1.2
Fix HMR for compound components (#1484)
Adding or removing a component from a compound component was not handled, creating stale updates. Doing this now triggers hmr invalidate on the file and propagates the invalidation to importers.
Fix
compiler.logDiagnosticsoption not working (#1483)With
oxc-transform-react>= 0.148, thelogDiagnosticswas not working. This version fixes it and requiresoxc-transform-react>= 0.152 as a peer dependency if you are using thecompileroption.compiler.logDiagnosticsoption is now deprecated and should be swapped for the builtincompiler.reportDiagnostics.Disable refresh for non-jsx with compiler enabled (fix #1478) (#1485)
When the compiler was enabled, TS files could trigger fast refresh which would cause runtime errors. The logic now follows what the builtin oxc plugin in Vite does.
Sourced from @vitejs/plugin-react's changelog.
6.1.2 (2026-10-05)
Fix HMR for compound components (#1484)
Adding or removing a component from a compound component was not handled, creating stale updates. Doing this now triggers hmr invalidate on the file and propagates the invalidation to importers.
Fix
compiler.logDiagnosticsoption not working (#1483)With
oxc-transform-react>= 0.148, thelogDiagnosticswas not working. This version fixes it and requiresoxc-transform-react>= 0.152 as a peer dependency if you are using thecompileroption.compiler.logDiagnosticsoption is now deprecated and should be swapped for the builtincompiler.reportDiagnostics.Disable refresh for non-jsx with compiler enabled (fix #1478) (#1485)
When the compiler was enabled, TS files could trigger fast refresh which would cause runtime errors. The logic now follows what the builtin oxc plugin in Vite does.
ac47648
release: plugin-react@6.1.2 (#1491)98277e7
fix(deps): update all non-major dependencies (#1486)12eddea
fix(hmr): better handle compound components (#1484)3cfb1d1
fix(plugin-react): fix compiler.logDiagnostics (#1483)6de9915
fix(plugin-react): disable refresh for non-jsx with compiler enabled (#1485)ee97d2f
fix(deps): update all non-major dependencies (#1445)b0a014d
chore: use Babel 8 for babel compiler playgrounds (#1460)61b650f
fix(deps): update react-related dependencies (#1452)736efe2
chore(deps): update tsdown to v0.23 (#1451)