Skip to content

feat(rsc): generalize server action transforms#1259

Open
james-elicx wants to merge 2 commits into
vitejs:mainfrom
james-elicx:codex/rsc-generalize-server-action-transform
Open

feat(rsc): generalize server action transforms#1259
james-elicx wants to merge 2 commits into
vitejs:mainfrom
james-elicx:codex/rsc-generalize-server-action-transform

Conversation

@james-elicx

Copy link
Copy Markdown
Contributor

Extracted from #1246.

transformServerActionServer is currently hard-coded to the "use server" directive and a single runtime/validation policy. Framework directives otherwise need to duplicate the module-vs-inline dispatch logic.

This adds configurable inline/module directives, runtimes, filtering, validation, directive preservation, and built-in module detection. Direct tests cover each dispatch option.

@james-elicx james-elicx changed the title feat(rsc): generalize server action transforms refactor(rsc): generalize server action transforms Jun 30, 2026
@james-elicx james-elicx changed the title refactor(rsc): generalize server action transforms feat(rsc): generalize server action transforms Jun 30, 2026
@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