Packages

@vitejs/plugin-react

6.3.0 · 9 Nov 2026MIT142M / weekRepositoryHomepagenpmAtom feed

Upgrading @vitejs/plugin-react From 3.1.0 to 4.0.0

1 release in betweenevery note read

Other targets from 3.1.0Latest6.3.0
  1. 3.1.0yours
  2. 4.0.0target

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0

Release by release

  1. 4.0.0

    Migration needed20 Apr 20232 new · 2 fixes
    • Breaking

      fastRefresh (#122) This should be correctly activated by plugin without configuration.

    • Breaking

      jsxPure (#129) This is a niche use case that was just passing down the boolean to esbuild.jsxSideEffects.

    • New

      Cache plugin load

    • New

      Wrap dynamic import to speedup analysis

    • Fixed

      Avoid key collision in React refresh registration (a74dfef, fix #116)

    • Fixed

      Don't force optimization of jsx-runtime

3 other lines we could not sort, mostly version bumps
  • Silence "use client" warning (#144, fix #137)

    4.0.0
  • Vite 4.2 is required as a peer dependency

    4.0.0
  • Throw when refresh runtime is loaded twice (#108, fix #101)

    4.0.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.