Skip to content

fix(rsc): fix transitive dep as client boundary by bailing out client package virtual - #1277

Merged
hi-ogawa merged 1 commit into
mainfrom
fix/issue-1247
Jul 6, 2026
Merged

fix(rsc): fix transitive dep as client boundary by bailing out client package virtual#1277
hi-ogawa merged 1 commit into
mainfrom
fix/issue-1247

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Description

When a server package imports a bare "use client" package that is only a transitive dependency (not installed at the project root), virtualizing it as a client package emitted a bare import "pkg" into virtual:vite-rsc/client-references, which fails to re-resolve from the root. Skip virtualization in that case and fall back to the fully resolved module id.

… packages (#1247)

When a server package imports a bare "use client" package that is only a
transitive dependency (not installed at the project root), virtualizing it
as a client package emitted a bare `import "pkg"` into
`virtual:vite-rsc/client-references`, which fails to re-resolve from the
root. Skip virtualization in that case and fall back to the fully resolved
module id.

Co-authored-by: OpenCode (claude-opus-4-8) <noreply@opencode.ai>
@hi-ogawa
hi-ogawa merged commit 85814bf into main Jul 6, 2026
22 checks passed
@hi-ogawa
hi-ogawa deleted the fix/issue-1247 branch July 6, 2026 05:56
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.

Support Transitive deps in virtual:vite-rsc/client-references

1 participant