Skip to content

feat(rsc): support inline server action methods#1255

Open
james-elicx wants to merge 3 commits into
vitejs:mainfrom
james-elicx:codex/rsc-inline-methods
Open

feat(rsc): support inline server action methods#1255
james-elicx wants to merge 3 commits into
vitejs:mainfrom
james-elicx:codex/rsc-inline-methods

Conversation

@james-elicx

Copy link
Copy Markdown
Contributor

Extracted from #1246.

Inline "use server" transforms currently produce invalid output for object methods and static class methods because method syntax cannot be replaced like a standalone function expression.

This rewrites supported methods to property/field assignments and gives their hoists method-derived names. Tests cover identifier and computed object/static methods, plus explicit errors for instance, private, getter, and setter methods.

@james-elicx james-elicx marked this pull request as ready for review June 30, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant