Back to Explore

vitejs/vite-plugin-react

GitHub
10 updates · last 90 daysOpen source

Last release:

The Vite plugin for React, described as an all-in-one solution for React projects using Vite. It provides packages including `@vitejs/plugin-react`, `@vitejs/plugin-react-swc`, and `@vitejs/plugin-rsc` to support different React tooling needs.

Project status

  • Actively maintained, with an upstream push on 2026-11-05 and updates as recently as 2026-11-02.
  • Updates have been frequent in recent months, often several days or weeks apart, across both the React and RSC plugins.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • plugin-rsc@0.5.39

    plugin-rsc@0.5.39 adds a way to reject server references while decoding replies or actions, and fixes handling of React libraries and repeated server CSS resources. The diff also adds regression coverage for linked packages and repeated CSS imports, plus documentation for React library detection.

    Features
  • plugin-react@6.2.1

    plugin-react@6.2.1 fixes `refreshInclude` and `refreshExclude` so their configured filters correctly control React Fast Refresh. The release also updates the package version and changelog; no other code changes are evident.

  • plugin-react@6.2.0

    plugin-react 6.2.0 adds `refreshInclude` and `refreshExclude` options and widens the supported peer dependency ranges for `oxc-transform-react` and `@rolldown/plugin-babel`. The diff also includes significant plugin-rsc decoder and server-reference reachability work that is not mentioned in these release notes, plus a likely fast-refresh logic regression in the React compiler path.

    Features
  • plugin-rsc@0.5.38

    plugin-rsc@0.5.38 ships a fix to its RSC scan-build stripping logic for certain dynamic import patterns, and updates CI to run the e2e matrix faster via test subsets and sharding. It also bumps React-related dependency versions to React 19.3.1.

  • plugin-rsc@0.5.37

    plugin-rsc@0.5.37 introduces RSC transform support for exposing closure capture variables from `transformHoistInlineDirective` to the transform runtime. It also improves server action encryption correctness by binding encrypted payloads to their action id, and fixes sourcemap and wrapping edge cases in the RSC transform pipeline.

    Features
  • plugin-rsc@0.5.36

    plugin-rsc@0.5.36 is a maintenance release focused on dependency updates and RSC-related bug fixes. From the provided diff, the only concrete codebase change visible is an upgrade of the transitive dependency srvx to v1, along with version/changelog metadata updates.

  • plugin-react@6.1.2

    plugin-react@6.1.2 focuses on React Compiler integration fixes and Fast Refresh correctness. It corrects HMR invalidation for compound components, repairs the compiler.logDiagnostics behavior, and adjusts refresh triggering when the compiler is enabled. The release also bumps the required oxc-transform-react peer dependency when using the compiler.

    Breaking
  • plugin-rsc@0.5.35

    plugin-rsc@0.5.35 documents an RSC improvement to expose Node.js stream APIs, along with dependency updates and an internal refactor. The code diff shows additional runtime behavior changes beyond the release notes, notably stricter remounting logic in the shared refresh runtime.

    Features
  • plugin-react@6.1.1

    plugin-react@6.1.1 adds a new React Compiler option, compiler.logDiagnostics, to control whether recoverable diagnostics are emitted through Vite. It also changes how sourcemaps are determined for the React Compiler transform, using the environment sourcemap settings rather than the top-level Vite option (fixing issues with builder.sharedPlugins).

    BreakingFeatures
  • plugin-react@6.1.0

    plugin-react@6.1.0 introduces an experimental React Compiler integration behind a new `compiler` option on `@vitejs/plugin-react`. When enabled, the plugin dynamically loads `oxc-transform-react` and applies its transform to matching client code, with React compiler runtime dependency optimization.

    Features
  • plugin-rsc@0.5.34

    plugin-rsc@0.5.34 adds support for mixing inline and file-level directives in RSC modules (inline "use cache" within file-level "use server" and vice versa), plus support for inline directive methods. The diff largely consists of new/expanded example apps and updated Playwright E2E coverage around cached server references, directive mixing, and a new persistent use cache example.

    Features
  • plugin-rsc@0.5.33

    plugin-rsc@0.5.33 enhances React Server Components transform capabilities, including more flexible filtering/AST support for export wrapping, proxy export handling, and inline directive hoisting. It also adds stricter validation around "use server" directives and aligns transform API typings with Vite AST nodes. The release notes also mention improvements around entry point usage and action routing examples.

    BreakingFeatures
  • plugin-react-swc@4.3.3

    plugin-react-swc@4.3.3 adds a compatibility patch for Vite's experimental bundled dev mode. The plugin now detects `config.experimental.bundledDev` and alters how React Refresh preamble code is injected so HMR/refresh keeps working in that mode.

  • plugin-react@6.0.5

    plugin-react@6.0.5 fixes an issue introduced in v6.0.3 where the React compiler preset filter became non-linear, leading to a performance regression. The filter logic has been changed back to a linear form to avoid the regression.

  • plugin-rsc@0.5.32

    plugin-rsc@0.5.32 is a small maintenance release with a single noted fix around preserving server reference metadata compatibility. The code diff shows a compatibility-oriented change in the RscPluginManager API surface, plus standard version/changelog updates.

  • plugin-rsc@0.5.31

    plugin-rsc@0.5.31 adds support for registering server functions via plugins, alongside several RSC bug fixes and dependency updates (including a React Router security-related bump). The code diff is dominated by documentation and example framework changes, plus CI workflow adjustments to support a PR-driven release flow for plugin-rsc.

    SecurityFeatures
  • plugin-rsc@0.5.30

    plugin-rsc@0.5.30 mainly fixes RSC-related HMR edge cases and improves module resolution for the virtual client package. It also adds documentation clarification for PPR render passes, plus new example(s) and related tests.

  • plugin-react@6.0.4

    plugin-react@6.0.4 is a patch release that claims to fix the Vite dev error "$RefreshSig$ is not defined" when running with NODE_ENV=production. The provided code diff shows only version and changelog metadata updates.

  • plugin-react-swc@4.3.2

    plugin-react-swc@4.3.2 updates the React SWC plugin so React Refresh wrapping is avoided for modules that do not contain JSX. The commit also includes an SWC core dependency bump and some internal refactoring to how JSX presence is detected.

  • plugin-rsc@0.5.29

    The release notes for plugin-rsc@0.5.29 do not include any details in the provided text, and instead direct readers to the package CHANGELOG.md for information. As a result, this release cannot be analyzed for new features, bug fixes, breaking changes, security, or dependency updates from the supplied release notes alone.