Releases of @vitejs/plugin-react
67 stable releases, newest first. Release notes are kept for the last 90 days; older ones link to where they were published.
6.1.2
5 October 2026Fix HMR for compound components
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 workingWith
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.6.1.1
28 August 2026Add
compiler.logDiagnosticsoptionRecoverable React Compiler diagnostics are no longer logged by default. Set
compiler.logDiagnosticstotrueto log them through Vite. Fatal diagnostics are always logged and fail the transform.Respect environment sourcemap option for React Compiler transform when
builder.sharedPluginsis enabledThe React Compiler transform was using the top-level sourcemap option instead of the environment sourcemap option. This caused a problem when the experimental
builder.sharedPluginswas enabled.6.1.0
20 August 2026Add experimental native React Compiler support
Add experimental native React Compiler support.
You can use it by installing
oxc-transform-reactand enabling it via thecompileroption:npm install -D oxc-transform-react
6.0.5
30 July 2026Fixed the react compiler preset filter to be linear
The improved filter in v6.0.3 was non-linear and caused a performance regression (#1349). The filter was changed to be linear to avoid that.
6.0.4
22 July 2026Fixed
$RefreshSig$ is not definederror when runningvite devwithNODE_ENV=productionWhen running
vite devwithNODE_ENV=production, the app errored with$RefreshSig$ is not defined. This error is now fixed.6.0.3
23 June 20266.0.2
14 May 20266.0.1
13 March 20266.0.0
12 March 20265.2.0
12 March 20265.1.4
10 February 20265.1.3
2 February 20265.1.2
8 December 20255.1.1
12 November 20255.1.0
24 October 20255.0.4
27 September 20255.0.3
17 September 20255.0.2
28 August 20255.0.1
19 August 20255.0.0
7 August 20254.7.0
18 July 20254.6.0
23 June 20254.5.2
10 June 20254.5.1
3 June 20254.5.0
23 May 20254.4.1
19 April 20254.4.0
15 April 20254.3.4
26 November 20244.3.3
19 October 20244.3.2
29 September 20244.3.1
10 June 20244.3.0
22 May 20244.2.1
4 December 20234.2.0
16 November 20234.1.1
2 November 20234.1.0
24 September 20234.0.4
31 July 20234.0.3
10 July 20234.0.2
6 July 20234.0.1
19 June 20234.0.0
20 April 20233.1.0
2 February 20233.0.1
5 January 20233.0.0
9 December 20222.2.0
26 October 20222.1.0
5 September 20222.0.1
11 August 20222.0.0
13 July 20221.3.2
2 May 20221.3.1
13 April 2022