unstale

npm / @vitejs/plugin-rsc

@vitejs/plugin-rsc

What changed in @vitejs/plugin-rsc 0.5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

1 breaking8 security1 deprecations17 new APIs and options2 performance6 behavior and defaults2 tooling43 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@vitejs/plugin-rsc 0.580 changes

Breaking changes 1

  • Files with the use server directive reject static non-function exports and uninitialized exports.

    0.5.33release notes

Security 8

  • Encrypted closures are now bound to their action id.

    0.5.37release notes

  • @vitejs/plugin-rsc has a Denial of Service Vulnerability in React Server Components

    0.5.26security advisory

  • @vitejs/plugin-rsc has a Denial of Service with React Server Components

    0.5.23security advisory

  • Requests to findSourceMapURL are validated.

    0.5.8release notessecurity advisory

  • Vite Plugin React has a Denial of Service Vulnerability in React Server Components

    0.5.7security advisory

  • Vite Plugin React has a Source Code Exposure Vulnerability in React Server Components

    0.5.7security advisory

  • @vitejs/plugin-rsc Remote Code Execution through unsafe dynamic imports in RSC server function APIs on development server

    0.5.6security advisory

  • React Server Components are Vulnerable to RCE

    0.5.3security advisory

Deprecations 1

New APIs and options 17

  • Server references can now be rejected during decodeReply and decodeAction.

    0.5.39release notes

  • The transformHoistInlineDirective meta now exposes closure captures.

    0.5.37release notes

  • Node.js stream APIs are exposed for developers using the plugin.

    0.5.35release notes

  • Inline directive methods are now supported.

    0.5.34release notes

  • The SSR environment can access the client entry URL.

    0.5.33release notes

  • The proxy export filter can inspect node ASTs.

    0.5.33release notes

  • The filter can inspect node ASTs, and filtered exports are no longer rewritten.

    0.5.33release notes

  • Plugins can now register server functions.

    0.5.31release notes

  • The static API is exposed, making it available to developers using the plugin.

    0.5.29release notes

  • Exposes the onClientReference callback in renderToReadableStream.

    0.5.16release notes

  • Adds an option to opt out of the index entry convention for the client.

    0.5.15release notes

  • Adds the import.meta.viteRsc.import API.

    0.5.15release notes

  • Adds a callback to be notified when client reference dependencies are loaded; it is moved to wrapResourceProxy, fixing development behavior.

    0.5.15release notes

  • Adds control over whether CSS links use React's precedence attribute.

    0.5.15release notes

  • Adds the customBuildApp option.

    0.5.13release notes

  • Adds a resolved-id proxy for virtual modules.

    0.5.12release notes

  • loadModule now supports an optional single entry.

    0.5.11release notes

Performance 2

  • Hook filters were added to improve performance.

    0.5.18release notes

  • The plugin uses srvx/node in dev and preview as a performance improvement.

    0.5.8release notes

Behavior and default changes 6

  • Inline use cache exports are supported in file-level use server modules, and vice versa.

    0.5.34release notes

  • The transform provides AST node value metadata and supports hoisting with a runtime wrapper.

    0.5.33release notes

  • On the rsc environment, server reference modules can now be left unloaded during createFromReadableStream.

    0.5.28release notes

  • The server and client runtimes are split.

    0.5.28release notes

  • The import.meta.viteRsc.loadModule global now uses __VITE_ENVIRONMENT_RUNNER_IMPORT__.

    0.5.11release notes

  • Supports serialization of Request and Response with loadModuleDevProxy.

    0.5.5release notes

Tooling 2

Fixes and other changes 43

  • Packages with react in dependencies are now inlined.

    0.5.39release notes

  • The server CSS resources element is reused across renders.

    0.5.39release notes

  • Scan build strip now skips glob dynamic import specifiers.

    0.5.38release notes

  • Server Function source is now dropped from client sourcemaps.

    0.5.37release notes

  • CSS wrappers no longer end up inside a trailing comment when a module has no final newline.

    0.5.37release notes

  • Finalizes the asset manifest after CSS processing, so the manifest reflects CSS assets.

    0.5.36release notes

  • Uses anonymous cross-origin mode for CSS.

    0.5.36release notes

  • Resolves the facade client entry with strictExecutionOrder.

    0.5.36release notes

  • Strings are treated as directives only at the top of a file.

    0.5.33release notes

  • Transform API types are aligned with Vite AST types.

    0.5.33release notes

  • The use server file directive uses the module export effect transform.

    0.5.33release notes

  • Preserves server reference metadata compatibility.

    0.5.32release notes

  • Corrects a typo in the keepUseClientProxy option.

    0.5.31release notes

  • Root resolution errors are ignored in rsc:virtual-client-package.

    0.5.31release notes

  • Keeps client HMR working for client modules co-located with rsc-graph code.

    0.5.30release notes

  • Fixed transitive dependencies being treated as a client boundary by bailing out client package virtual.

    0.5.28release notes

  • The preload priority for client references is lowered.

    0.5.28release notes

  • createTemporaryReferenceSet is now re-exported from ssr.

    0.5.28release notes

  • The encodeFormAction option type is now exposed.

    0.5.28release notes

  • encodeReply is now re-exported from ssr.

    0.5.28release notes

  • Fixed transformWrapExport when used with filter and rejectNonAsyncFunction.

    0.5.28release notes

  • Handles export * re-exports in use client and use server modules.

    0.5.27release notes

  • Handles conflicting names from export * in use client and use server modules.

    0.5.27release notes

  • Includes bundled server CSS when cssCodeSplit is false.

    0.5.25release notes

  • Fixes server CSS HMR when cssLinkPrecedence is false.

    0.5.25release notes

  • Preserves the * in generators.

    0.5.24release notes

  • Checks for exported async functions are now aligned.

    0.5.22release notes

  • Accessed member expression values are now bound for use server closures.

    0.5.22release notes

  • Variable binding now handles shadowing in use server code.

    0.5.22release notes

  • React third-party libraries are excluded from server dependency optimization.

    0.5.21release notes

  • Only imported CSS and assets are copied from the RSC environment to the client environment.

    0.5.20release notes

  • The scan build no longer strips the rolldown runtime.

    0.5.19release notes

  • The interop helper now handles native and external CJS imports properly.

    0.5.18release notes

  • Removes redundant injection of builder.rsc.

    0.5.14release notes

  • Correctly selects the entry chunk when multiple chunks are named "index".

    0.5.14release notes

  • Supports placing the RSC outDir inside the SSR outDir.

    0.5.13release notes

  • Uses the proper origin for source map lookup.

    0.5.10release notes

  • Fixed findSourceMapURL on Windows.

    0.5.9release notes

  • Reference IDs are validated in development.

    0.5.6release notes

  • Fixes deserializing client references in the server environment with React 19.2.1+.

    0.5.4release notes

  • Fixed loadModuleDevProxy when used with @cloudflare/vite-plugin.

    0.5.2release notes

  • The API is no longer falsely detected inside comments and strings.

    0.5.1release notes

  • The transform now works for source files that do not end with a newline.

    0.5.1release notes