---
title: "@vitejs/plugin-rsc 0.5.37 Breaking Changes on npm"
description: "What each @vitejs/plugin-rsc release removed, renamed or changed: 29 breaking changes in 5 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@vitejs/plugin-rsc
last_updated: 2026-12-04
---

# @vitejs/plugin-rsc breaking changes

@vitejs/plugin-rsc 0.5.37 (October 13, 2026) is its newest release with breaking changes, 7 of them. The first: Signature changed transforms:TransformHoistInlineDirectiveMeta. Every breaking API change we have recorded in @vitejs/plugin-rsc on npm: 29 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.5.41`, released December 1, 2026. [Source repository](https://github.com/vitejs/vite-plugin-react)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [0.5.27](#v-0-5-27) to [0.5.37](#v-0-5-37): 28 breaking changes in 4 versions.

## @vitejs/plugin-rsc 0.5.37 breaking changes

@vitejs/plugin-rsc 0.5.37, released October 13, 2026: 7 breaking changes.

- **Signature changed** `transforms:TransformHoistInlineDirectiveMeta`  

Was type TransformHoistInlineDirectiveMeta = {directiveMatch: RegExpMatchArray; valueNode: ArrowFunctionExpression | FunctionDeclaration | FunctionExpression;}; now type TransformHoistInlineDirectiveMeta = {directiveMatch... [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.37)
- **Signature changed** `transforms:TransformHoistInlineDirectiveOptions`  

Was type TransformHoistInlineDirectiveOptions = {runtime: (value: string, name: string, meta: TransformHoistInlineDirectiveMeta) => string; directive: string | RegExp; rejectNonAsyncFunction?: boolean; encode?: (value: string) => string... [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.37)
- **Signature changed** `transforms:TransformHoistInlineDirectiveOptions.decode`  

Was decode?: (value: string) => string; now decode?: (value: string, name: string) => string. [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.37)
- **Signature changed** `transforms:TransformHoistInlineDirectiveOptions.encode`  

Was encode?: (value: string) => string; now encode?: (value: string, name: string) => string. [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.37)
- **Signature changed** `transforms:TransformServerActionServerOptions`  

Was type TransformServerActionServerOptions = {runtime: (value: string, name: string) => string; rejectNonAsyncFunction?: boolean; encode?: (value: string) => string; decode?: (value: string) => string;}; now type... [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.37)
- **Signature changed** `transforms:TransformServerActionServerOptions.decode`  

Was decode?: (value: string) => string; now decode?: (value: string, name: string) => string. [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.37)
- **Signature changed** `transforms:TransformServerActionServerOptions.encode`  

Was encode?: (value: string) => string; now encode?: (value: string, name: string) => string. [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.37)

## @vitejs/plugin-rsc 0.5.35 breaking changes

@vitejs/plugin-rsc 0.5.35, released September 16, 2026: 1 breaking change.

- **Behavior changed**  

The rsc utils package was replaced in an internal refactor; code importing it directly may need to change. [github.com](https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-rsc%400.5.35)

## @vitejs/plugin-rsc 0.5.33 breaking changes

@vitejs/plugin-rsc 0.5.33, released August 6, 2026: 17 breaking changes.

- **Behavior changed**  

Files marked with use server now reject static non-function exports, so such code will fail to build. Export only functions from these files. [github.com](https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-rsc%400.5.33)
- **Behavior changed**  

Files marked with use server now reject uninitialized exports, so such code will fail to build. Initialize exports in these files. [github.com](https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-rsc%400.5.33)
- **Behavior changed**  

String literals are now read as directives only when they appear at the top of a module. Directive strings placed elsewhere no longer take effect. [github.com](https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-rsc%400.5.33)
- **Signature changed** `transforms:findDirectives`  

Was function findDirectives(ast: Program, directive: string): Literal\[\]; now function findDirectives(viteAst: ESTree.Program, directive: string): Literal\[\]. [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.33)
- **Signature changed** `transforms:hasDirective`  

Was function hasDirective(body: Program\["body"\], directive: string): boolean; now function hasDirective(viteBody: ESTree.Program\["body"\], directive: string): boolean. [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.33)
- **Signature changed** `transforms:transformDirectiveProxyExport`  

Was function transformDirectiveProxyExport(ast: Program, options: {directive: string;} & TransformProxyExportOptions): {exportNames: string\[\]; output: MagicString;} | undefined; now function transformDirectiveProxyExport(ast... [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.33)
- **Signature changed** `transforms:TransformExpandExportAllContext.load`  

Was load: (id: string) => Promise\<Program>; now load: (id: string) => Promise\<ESTree.Program>. [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.33)
- **Signature changed** `transforms:TransformExpandExportAllOptions.ast`  

Was ast: Program; now ast: ESTree.Program. [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.33)
- **Signature changed** `transforms:TransformExpandExportAllOptions.load`  

Was load: (id: string) => Promise\<Program>; now load: (id: string) => Promise\<ESTree.Program>. [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.33)
- **Signature changed** `transforms:transformHoistInlineDirective`  

Was function transformHoistInlineDirective(input: string, ast: Program, {runtime, rejectNonAsyncFunction, ...options}: {runtime: (value: string, name: string, meta: {directiveMatch: RegExpMatchArray;}) => string; directive: string |... [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.33)

And 7 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## @vitejs/plugin-rsc 0.5.31 breaking changes

@vitejs/plugin-rsc 0.5.31, released July 28, 2026: 3 breaking changes.

- **Configuration changed** `keepUseClientProxy`  

The keepUseClientProxy option name was corrected from a misspelled version. Code that used the misspelled option name needs to use keepUseClientProxy. [github.com](https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-rsc%400.5.31)
- **Signature changed** `RscPluginOptions`  

Was type RscPluginOptions = {entries?: Partial\<Record<"client" | "ssr" | "rsc", string>>; serverHandler?: {environmentName: string; entryName: string;} | false; loadModuleDevProxy?: boolean; rscCssTransform?: false | {filter?: (id: string)... [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.31)
- **Signature changed** `transforms:transformServerActionServer`  

Was function transformServerActionServer(input: string, ast: Program, options: {runtime: (value: string, name: string) => string; rejectNonAsyncFunction?: boolean; encode?: (value: string) => string; decode?: (value: string) => string;})... [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.31)

## @vitejs/plugin-rsc 0.5.27 breaking changes

@vitejs/plugin-rsc 0.5.27, released June 1, 2026: 1 breaking change.

- **Removed** `transforms:getExportNames`  

getExportNames was removed in @vitejs/plugin-rsc 0.5.27 [npmjs.com](https://www.npmjs.com/package/@vitejs/plugin-rsc/v/0.5.27)

## Related packages

- [@vitejs/plugin-react](https://since.dev/packages/npm/@vitejs/plugin-react.md)
- [@vitejs/plugin-legacy](https://since.dev/packages/npm/@vitejs/plugin-legacy.md)
- [@vitejs/plugin-vue](https://since.dev/packages/npm/@vitejs/plugin-vue.md)
- [@vitejs/plugin-vue-jsx](https://since.dev/packages/npm/@vitejs/plugin-vue-jsx.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
