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@vitejs/plugin-rsc 0.580 changes
Breaking changes 1
Files with the
use serverdirective reject static non-function exports and uninitialized exports.
Security 8
Encrypted closures are now bound to their action id.
@vitejs/plugin-rsc has a Denial of Service Vulnerability in React Server Components
@vitejs/plugin-rsc has a Denial of Service with React Server Components
Requests to findSourceMapURL are validated.
Vite Plugin React has a Denial of Service Vulnerability in React Server Components
Vite Plugin React has a Source Code Exposure Vulnerability in React Server Components
@vitejs/plugin-rsc Remote Code Execution through unsafe dynamic imports in RSC server function APIs on development server
React Server Components are Vulnerable to RCE
Deprecations 1
loadBootstrapScriptContent is deprecated.
New APIs and options 17
Server references can now be rejected during decodeReply and decodeAction.
The transformHoistInlineDirective meta now exposes closure captures.
Node.js stream APIs are exposed for developers using the plugin.
Inline directive methods are now supported.
The SSR environment can access the client entry URL.
The proxy export filter can inspect node ASTs.
The filter can inspect node ASTs, and filtered exports are no longer rewritten.
Plugins can now register server functions.
The static API is exposed, making it available to developers using the plugin.
Exposes the onClientReference callback in renderToReadableStream.
Adds an option to opt out of the index entry convention for the client.
Adds the
import.meta.viteRsc.importAPI.Adds a callback to be notified when client reference dependencies are loaded; it is moved to
wrapResourceProxy, fixing development behavior.Adds control over whether CSS links use React's
precedenceattribute.Adds the customBuildApp option.
Adds a resolved-id proxy for virtual modules.
loadModule now supports an optional single entry.
Performance 2
Hook filters were added to improve performance.
The plugin uses srvx/node in dev and preview as a performance improvement.
Behavior and default changes 6
Inline use cache exports are supported in file-level use server modules, and vice versa.
The transform provides AST node value metadata and supports hoisting with a runtime wrapper.
On the rsc environment, server reference modules can now be left unloaded during createFromReadableStream.
The server and client runtimes are split.
The import.meta.viteRsc.loadModule global now uses __VITE_ENVIRONMENT_RUNNER_IMPORT__.
Supports serialization of Request and Response with loadModuleDevProxy.
Tooling 2
Types are now provided for RSC API options.
Logs are shown for build steps.
Fixes and other changes 43
Packages with react in dependencies are now inlined.
The server CSS resources element is reused across renders.
Scan build strip now skips glob dynamic import specifiers.
Server Function source is now dropped from client sourcemaps.
CSS wrappers no longer end up inside a trailing comment when a module has no final newline.
Finalizes the asset manifest after CSS processing, so the manifest reflects CSS assets.
Uses anonymous cross-origin mode for CSS.
Resolves the facade client entry with strictExecutionOrder.
Strings are treated as directives only at the top of a file.
Transform API types are aligned with Vite AST types.
The
use serverfile directive uses the module export effect transform.Preserves server reference metadata compatibility.
Corrects a typo in the keepUseClientProxy option.
Root resolution errors are ignored in rsc:virtual-client-package.
Keeps client HMR working for client modules co-located with rsc-graph code.
Fixed transitive dependencies being treated as a client boundary by bailing out client package virtual.
The preload priority for client references is lowered.
createTemporaryReferenceSet is now re-exported from ssr.
The encodeFormAction option type is now exposed.
encodeReply is now re-exported from ssr.
Fixed transformWrapExport when used with filter and rejectNonAsyncFunction.
Handles
export *re-exports inuse clientanduse servermodules.Handles conflicting names from
export *inuse clientanduse servermodules.Includes bundled server CSS when cssCodeSplit is false.
Fixes server CSS HMR when cssLinkPrecedence is false.
Preserves the
*in generators.Checks for exported async functions are now aligned.
Accessed member expression values are now bound for
use serverclosures.Variable binding now handles shadowing in
use servercode.React third-party libraries are excluded from server dependency optimization.
Only imported CSS and assets are copied from the RSC environment to the client environment.
The scan build no longer strips the rolldown runtime.
The interop helper now handles native and external CJS imports properly.
Removes redundant injection of builder.rsc.
Correctly selects the entry chunk when multiple chunks are named "index".
Supports placing the RSC outDir inside the SSR outDir.
Uses the proper origin for source map lookup.
Fixed findSourceMapURL on Windows.
Reference IDs are validated in development.
Fixes deserializing client references in the server environment with React 19.2.1+.
Fixed loadModuleDevProxy when used with @cloudflare/vite-plugin.
The API is no longer falsely detected inside comments and strings.
The transform now works for source files that do not end with a newline.