Skip to content

fix(scripts): make setup-vite CLI invocation work on Windows - #10885

Merged
shulaoda merged 2 commits into
mainfrom
ci/fix-setup-vite
Sep 15, 2026
Merged

shulaoda merged 2 commits into
mainfrom
ci/fix-setup-vite

Conversation

@shulaoda

Copy link
Copy Markdown
Member

Fix https://github.com/rolldown/rolldown/actions/runs/34820362649/job/103901254361

Invoke the workspace Rolldown CLI through execFileSync(process.execPath, ...) without a shell. Preserve linking before the build so Vite inlines the matching DevRuntime, and update the setup documentation.

@shulaoda
shulaoda requested a review from h-a-n-a September 15, 2026 08:10
@netlify

netlify Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 4191c66
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6aa8ffd8fa70fd000854c7a1

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://ci-fix-setup-vite-rolldown-rs.voidzero-docs.workers.dev (commit 4191c66)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://2158ab66-rolldown-rs.voidzero-docs.workers.dev 4191c66 2026-09-15T08:24:01.591Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://d5a3d4f0-rolldown-rs.voidzero-docs.workers.dev 0073c9c 2026-09-15T08:12:51.234Z Visit the dashboard ↗

@shulaoda
shulaoda enabled auto-merge (squash) September 15, 2026 08:20
@shulaoda
shulaoda disabled auto-merge September 15, 2026 08:26
@shulaoda
shulaoda merged commit aedf806 into main Sep 15, 2026
35 checks passed
@shulaoda
shulaoda deleted the ci/fix-setup-vite branch September 15, 2026 08:26
Brooooooklyn added a commit that referenced this pull request Sep 15, 2026
Conflicts resolved:

* pnpm-workspace.yaml — kept main's oxc 0.150.0 catalog bumps together with
  every branch pin (emnapi 2.0.0-alpha.5 override + catalog, @emnapi/core and
  @emnapi/runtime, @napi-rs/cli, @napi-rs/wasm-runtime ~1.2.3, buffer,
  miniflare, wrangler) and their explanatory comments.
* scripts/src/setup-vite/main.ts — main's #10885 form of the Windows fix
  (spawn the workspace `bin/cli.mjs` with `process.execPath`), spawned through
  this branch's `runNode` helper in `checkout.ts` instead of a second inline
  `execFileSync`, and with the step-5 `viteRequire` binding kept where main has
  it. Both sides fix the same cmd.exe problem the same way.
* packages/rolldown/src/rolldown-binding.wasi.cjs — generated; regenerated
  from a real wasm32-wasip1-threads build rather than hand-merged.

Generated artifacts regenerated after the merge, so every flavor carries main's
new `__internalForcePanic` export: `just build-rolldown` (binding.cjs,
binding.d.cts), `build-binding:wasi` (rolldown-binding.wasi.{cjs,d.cts},
wasi-browser.js) and `build-binding:wasi-single`
(rolldown-binding.wasip1.{cjs,d.cts}, wasip1-browser.js). A native build
re-emits the WASI loaders from the export list embedded in
`rolldown-binding.wasi.cjs`, so the WASI builds had to run first.

`src/binding-workerd-proxy.ts` is hand-written and mirrors that same export
list (`tests/workerd-build.test.ts` enforces it), so it forwards
`__internalForcePanic` too.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01T34fMrYCf2V13Mg8BKmnda
@rolldown-guard rolldown-guard Bot mentioned this pull request Sep 16, 2026
shulaoda added a commit that referenced this pull request Sep 16, 2026
## [1.2.9] - 2026-09-16

### 🚀 Features

- add `MODULE_LEVEL_DIRECTIVE` warning (#10791) by @sapphi-red

### 🐛 Bug Fixes

- handle CommonJS exports through top-level `this` (#10872) by @IWANABETHATGUY
- scripts: make setup-vite CLI invocation work on Windows (#10885) by @shulaoda
- remove deleted property from output bundle proxy target (#10815) by @Vladexy88x
- treat module-scope `await using` as top-level await (#10739) by @MarshallOfSound
- watch: preserve plugin attribution in warnings (#10473) by @Nic-Polumeyv
- test-dev-server: link the workspace rolldown before building vite (#10857) by @h-a-n-a
- minify: preserve annotation comments when minified (#10854) (#10855) by @justonemorenight

### ⚡ Performance

- dev/lazy: fetch a lazy route in one request (#10789) by @h-a-n-a
- plugin: reduce binding binary size (#10776) by @Boshen
- vite-reporter: reuse emitted sourcemap sizes (#10841) by @hyfdev

### 🧪 Testing

- dev: full-bundle-mode regression test for cyclic import binding (#9946) (#9947) by @ShMcK
- cover asset option callback timings (#10870) by @IWANABETHATGUY

### ⚙️ Miscellaneous Tasks

- wait for npm bindings before publishing rolldown (#10866) by @shulaoda
- deps: update dependency @napi-rs/cli to v3.10.1 (#10889) by @renovate[bot]
- deps: update napi (#10888) by @renovate[bot]
- compress debug info archives with zstd (#10778) by @IWANABETHATGUY
- publish split debug info for release bindings (#10777) by @IWANABETHATGUY
- rolldown_utils: simplify MIME guessing and remove UTF-8 check bypass (#10884) by @shulaoda
- add npm bugs metadata for rolldown (#9694) by @kingshuaishuai
- deps: upgrade oxc to 0.150.0 (#10877) by @camc314
- deps: update rust crates (#10869) by @renovate[bot]
- deps: update dependency vite-plus to v0.3.2 (#10878) by @renovate[bot]
- deps: update rollup submodule for tests to v4.63.3 (#10880) by @rolldown-guard[bot]
- deps: update test262 submodule for tests (#10881) by @rolldown-guard[bot]
- deps: update github actions (#10867) by @renovate[bot]
- deps: update npm packages (#10868) by @renovate[bot]
- deps: update napi to v3.12.4 (#10862) by @renovate[bot]
- deps: update napi (#10861) by @renovate[bot]

### ❤️ New Contributors

* @Vladexy88x made their first contribution in [#10815](#10815)
* @MarshallOfSound made their first contribution in [#10739](#10739)
* @kingshuaishuai made their first contribution in [#9694](#9694)
* @ShMcK made their first contribution in [#9947](#9947)
* @justonemorenight made their first contribution in [#10855](#10855)

Co-authored-by: shulaoda <[email protected]>
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.

2 participants