Skip to content

fix(cli): forward custom arguments to vp dev and vp build - #3497

Merged
fengmk2 merged 5 commits into
mainfrom
codex/issue-2250-argv
Nov 20, 2026
Merged

fengmk2 merged 5 commits into
mainfrom
codex/issue-2250-argv

Conversation

@fengmk2

@fengmk2 fengmk2 commented Nov 19, 2026

Copy link
Copy Markdown
Member

vp dev and vp build remove the -- separator during argument parsing. Vite can then use a custom argument as the project path.

The CLI keeps the separator when it passes the custom arguments to Vite. The Vite config can read them in order from process.argv. When -- has no arguments after it, the CLI still selects the configured default package.

Fixes #2250

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://codex-issue-2250-argv-viteplus-dev.voidzero-docs.workers.dev (commit 0b93178)

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://1a677c6c-viteplus-dev.voidzero-docs.workers.dev 0b93178 2026-11-20T09:57:10.621Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://f70ef232-viteplus-dev.voidzero-docs.workers.dev 6722571 2026-11-20T09:18:51.035Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://89b859ef-viteplus-dev.voidzero-docs.workers.dev 5f5a9a8 2026-11-20T08:40:15.014Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://a9b3be34-viteplus-dev.voidzero-docs.workers.dev d41b742 2026-11-20T08:14:21.238Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c7e50328-viteplus-dev.voidzero-docs.workers.dev 49b3a85 2026-11-20T04:21:32.429Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://ba5c07bb-viteplus-dev.voidzero-docs.workers.dev d80700d 2026-11-20T01:26:58.915Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://761b60a2-viteplus-dev.voidzero-docs.workers.dev f9992cf 2026-11-19T15:11:04.803Z Visit the dashboard ↗

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

CLI artifact sizes (0b93178)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.
The dist rows use the Linux build. The core total excludes .node files to match the release artifact.

Artifact Format Base PR Change
packages/cli/dist Directory total 2.38 MiB 2.38 MiB 0 B (0.00%)
packages/core/dist Directory total 4.11 MiB 4.11 MiB 0 B (0.00%)
Combined package dist Directory total 6.49 MiB 6.49 MiB 0 B (0.00%)
vp (Linux x64) Binary 8.49 MiB 8.49 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 3.89 MiB 3.89 MiB +335 B (+0.01%)
NAPI (Linux x64) Binary 37.22 MiB 37.22 MiB 0 B (0.00%)
NAPI (Linux x64) gzip -9 14.86 MiB 14.86 MiB +468 B (+0.00%)
vp (macOS ARM64) Binary 5.57 MiB 5.57 MiB -16 B (-0.00%)
vp (macOS ARM64) gzip -9 3.32 MiB 3.32 MiB +567 B (+0.02%)
NAPI (macOS ARM64) Binary 43.77 MiB 43.77 MiB 0 B (0.00%)
NAPI (macOS ARM64) gzip -9 19.01 MiB 19.01 MiB +864 B (+0.00%)
vp (Windows x64) Binary 6.59 MiB 6.59 MiB 0 B (0.00%)
vp (Windows x64) gzip -9 3.00 MiB 3.00 MiB -29 B (-0.00%)
NAPI (Windows x64) Binary 33.18 MiB 33.18 MiB +512 B (+0.00%)
NAPI (Windows x64) gzip -9 13.60 MiB 13.60 MiB +249 B (+0.00%)
Trampoline (Windows x64) Binary 13.50 KiB 13.50 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 7.09 KiB 7.09 KiB 0 B (0.00%)
Installer (Windows x64) Binary 4.69 MiB 4.69 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.25 MiB 2.25 MiB -2 B (-0.00%)

@fengmk2
fengmk2 marked this pull request as ready for review November 20, 2026 01:42
@fengmk2
fengmk2 requested a review from cpojer November 20, 2026 01:43
@fengmk2 fengmk2 self-assigned this Nov 20, 2026
@fengmk2
fengmk2 marked this pull request as draft November 20, 2026 01:57
@fengmk2
fengmk2 marked this pull request as ready for review November 20, 2026 01:59
@fengmk2
fengmk2 force-pushed the codex/issue-2250-argv branch 3 times, most recently from 5f5a9a8 to 6722571 Compare November 20, 2026 09:17
@fengmk2
fengmk2 force-pushed the codex/issue-2250-argv branch from 6722571 to 0b93178 Compare November 20, 2026 09:56
@fengmk2
fengmk2 merged commit b322320 into main Nov 20, 2026
78 checks passed
@fengmk2
fengmk2 deleted the codex/issue-2250-argv branch November 20, 2026 12:40
@fengmk2 fengmk2 mentioned this pull request Nov 23, 2026
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.

vp dev& vp build break argv passthrough by stripping the -- separator

2 participants