Skip to content

fix(rsc): exclude filtered exports from transforms#1254

Open
james-elicx wants to merge 2 commits into
vitejs:mainfrom
james-elicx:codex/rsc-filtered-exports
Open

fix(rsc): exclude filtered exports from transforms#1254
james-elicx wants to merge 2 commits into
vitejs:mainfrom
james-elicx:codex/rsc-filtered-exports

Conversation

@james-elicx

Copy link
Copy Markdown
Contributor

Extracted from #1246.

transformWrapExport currently validates filtered exports and includes them in exportNames even though their values are not wrapped. This makes metadata exports fail async validation and reports references that were never registered.

This applies filtering before validation/reporting and keeps unresolved identifier exports eligible for wrapping. Tests cover named exports, default exports, and unknown identifier metadata.

@james-elicx james-elicx marked this pull request as ready for review June 30, 2026 23:29
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