Packages/@vitejs/plugin-react

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.

  1. 6.1.2

    5 October 2026

    Fix 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.logDiagnostics option not working

    With oxc-transform-react >= 0.148, the logDiagnostics was not working. This version fixes it and requires oxc-transform-react >= 0.152 as a peer dependency if you are using the compiler option. compiler.logDiagnostics option is now deprecated and should be swapped for the builtin compiler.reportDiagnostics.

  2. 6.1.1

    28 August 2026

    Add compiler.logDiagnostics option

    Recoverable React Compiler diagnostics are no longer logged by default. Set compiler.logDiagnostics to true to log them through Vite. Fatal diagnostics are always logged and fail the transform.

    Respect environment sourcemap option for React Compiler transform when builder.sharedPlugins is enabled

    The React Compiler transform was using the top-level sourcemap option instead of the environment sourcemap option. This caused a problem when the experimental builder.sharedPlugins was enabled.

  3. 6.1.0

    20 August 2026

    Add experimental native React Compiler support

    Add experimental native React Compiler support.

    You can use it by installing oxc-transform-react and enabling it via the compiler option:

    npm install -D oxc-transform-react
  4. 6.0.5

    30 July 2026

    Fixed 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.

  5. 6.0.4

    22 July 2026

    Fixed $RefreshSig$ is not defined error when running vite dev with NODE_ENV=production

    When running vite dev with NODE_ENV=production, the app errored with $RefreshSig$ is not defined. This error is now fixed.

  6. 6.0.3

    23 June 2026
  7. 6.0.2

    14 May 2026
  8. 6.0.1

    13 March 2026
  9. 6.0.0

    12 March 2026
  10. 5.2.0

    12 March 2026
  11. 5.1.4

    10 February 2026
  12. 5.1.3

    2 February 2026
  13. 5.1.2

    8 December 2025
  14. 5.1.1

    12 November 2025
  15. 5.1.0

    24 October 2025
  16. 5.0.4

    27 September 2025
  17. 5.0.3

    17 September 2025
  18. 5.0.2

    28 August 2025
  19. 5.0.1

    19 August 2025
  20. 5.0.0

    7 August 2025
  21. 4.7.0

    18 July 2025
  22. 4.6.0

    23 June 2025
  23. 4.5.2

    10 June 2025
  24. 4.5.1

    3 June 2025
  25. 4.5.0

    23 May 2025
  26. 4.4.1

    19 April 2025
  27. 4.4.0

    15 April 2025
  28. 4.3.4

    26 November 2024
  29. 4.3.3

    19 October 2024
  30. 4.3.2

    29 September 2024
  31. 4.3.1

    10 June 2024
  32. 4.3.0

    22 May 2024
  33. 4.2.1

    4 December 2023
  34. 4.2.0

    16 November 2023
  35. 4.1.1

    2 November 2023
  36. 4.1.0

    24 September 2023
  37. 4.0.4

    31 July 2023
  38. 4.0.3

    10 July 2023
  39. 4.0.2

    6 July 2023
  40. 4.0.1

    19 June 2023
  41. 4.0.0

    20 April 2023
  42. 3.1.0

    2 February 2023
  43. 3.0.1

    5 January 2023
  44. 3.0.0

    9 December 2022
  45. 2.2.0

    26 October 2022
  46. 2.1.0

    5 September 2022
  47. 2.0.1

    11 August 2022
  48. 2.0.0

    13 July 2022
  49. 1.3.2

    2 May 2022
  50. 1.3.1

    13 April 2022