Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/plugin-rsc/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ export function vitePluginRscMinimal(
(meta) => meta.referenceKey === parsed.id,
)
if (!meta) {
// Server references decoded by `createFromReadableStream` with
// `preserveServerReferences` can reach action loading without their
// modules entering the graph during replay. Transform the target on
// demand to populate metadata before validating its ID.
try {
// https://github.com/vitejs/vite/blob/a477454442eff649b430f9e3c6caf2500fcb7183/packages/vite/src/node/server/transformRequest.ts#L170-L175
const resolved = await this.resolve(parsed.id)
Expand Down
Loading