Skip to content

chore(deps): bump @vitejs/plugin-rsc to 0.5.27#1709

Merged
james-elicx merged 2 commits into
mainfrom
opencode/nimble-moon
Jun 1, 2026
Merged

chore(deps): bump @vitejs/plugin-rsc to 0.5.27#1709
james-elicx merged 2 commits into
mainfrom
opencode/nimble-moon

Conversation

@james-elicx

Copy link
Copy Markdown
Member

fixes #1352

Ports the build fixture from #1373 to verify the `@vitejs/plugin-rsc`
0.5.27 bump resolves the upstream "unsupported ExportAllDeclaration"
error. Covers bare `export *`, nested/renamed re-exports,
`export * as Ns from`, and destructured re-exported bindings.

The version bump fixes this natively, so the vinext-side workaround
plugin from #1373 is no longer needed.

Refs #1352
@pkg-pr-new

pkg-pr-new Bot commented Jun 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/vinext@1709

commit: cf482a4

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor
Example Preview Production Original
app-router-cloudflare preview production
pages-router-cloudflare preview production
app-router-playground preview production original
realworld-api-rest preview production
nextra-docs-template preview production
benchmarks preview production
hackernews preview production original
web preview production

@james-elicx

Copy link
Copy Markdown
Member Author

/bigbonk review

@ask-bonk ask-bonk Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: bump @vitejs/plugin-rsc to 0.5.27 (fixes #1352)

Verdict: LGTM — approving.

This is a clean, well-targeted dependency bump with strong regression coverage. I verified the fix end-to-end locally.

What I checked

1. The bump actually fixes the bug (#1352). I diffed the installed transform code between versions:

  • 0.5.26 (dist/transforms/index.js): ExportAllDeclaration unconditionally throws unsupported ExportAllDeclaration — exactly the error in the issue.
  • 0.5.27: real handling was added — bareStars filtering for export * from, export * as Ns from namespace re-exports, and VariableDeclaration declarators are walked via extractNames(decl.id) (handles ObjectPattern/ArrayPattern), plus ambiguity resolution in resolveStarExports. This maps directly onto the three test cases added.

2. Tests are genuine, not no-ops. Ran vp test run tests/use-client-export-all-build.test.ts after vp install:

  • All 3 pass (export *, export * as Ns, and destructured export const { ... } = ... barrels).
  • The destructure case specifically exercises the new extractNames pattern-walking path that did not exist in 0.5.26, so it is a meaningful regression guard.

3. No regressions. vp test run tests/app-router.test.ts338 passed. The build pipeline (RSC/SSR/client) is unaffected.

4. Lint/format/types. vp check tests/use-client-export-all-build.test.ts → clean.

5. Lockfile/workspace parity. pnpm-workspace.yaml catalog (^0.5.27) and all pnpm-lock.yaml importers are consistently updated to 0.5.27; transitive @rolldown/pluginutils bumped 1.0.0-rc.181.0.1 as expected. vp install --frozen-lockfile equivalent succeeded.

Notes / nits (non-blocking)

  • The new test follows the existing build-test conventions (createBuilder + buildApp, temp dir, node_modules junction, 60s timeout). Importing createBuilder from vite is consistent with sibling tests (tsconfig-path-alias-build.test.ts, intercepting-routes-build.test.ts).
  • Good practice: the test comments link back to the Next.js rsc-basic/export-all fixture, matching AGENTS.md guidance on porting Next.js coverage.
  • CI will run the full suite + E2E, which is the right place to catch any cross-cutting effects of the bump.

@ask-bonk

ask-bonk Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Review posted on PR #1709. Summary:

Review complete — Approved

PR #1709 bumps @vitejs/plugin-rsc from 0.5.26 → 0.5.27 to fix #1352 (export * from failing in "use client" files), plus adds 3 regression tests.

What I verified locally:

  • Fix is real: Diffed the transform code — 0.5.26 throws unsupported ExportAllDeclaration; 0.5.27 adds proper handling for export *, export * as Ns from, and destructured re-exports (extractNames walks ObjectPattern/ArrayPattern).
  • Tests pass & are meaningful: All 3 new tests pass with 0.5.27; the destructure case exercises a code path that didn't exist in 0.5.26.
  • No regressions: tests/app-router.test.ts → 338 passed.
  • Clean check: format/lint/types all pass on the new file.
  • Lockfile parity: workspace catalog + all lockfile importers consistently updated; transitive @rolldown/pluginutils 1.0.0-rc.18 → 1.0.1 as expected.

No blocking issues. The PR follows repo conventions (build-test patterns, Next.js fixture cross-references per AGENTS.md).

github run

@james-elicx
james-elicx marked this pull request as ready for review June 1, 2026 10:01
@james-elicx
james-elicx merged commit 60dfb11 into main Jun 1, 2026
38 checks passed
@james-elicx
james-elicx deleted the opencode/nimble-moon branch June 1, 2026 10:01
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.

Build failure: export * from in "use client" files not supported by RSC plugin

1 participant