Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#2,250 0 commenti 0 reazioni 2 assegnatari Vedi su GitHub

@wan9chi ci sta già lavorando.

Dal 26/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug
Describe the bug

Every vp CLI layer consumes one -- argument separator, so passthrough args that Vite leaves in process.argv for vite.config.ts to read never arrive. Actually the flags after the stripped -- even get misparsed as Vite positionals.

With plain Vite, vite build -- --app web keeps --app web out of option parsing and visible in process.argv (often sude to parameterize a single hoisted config in a monorepo).

But in vp this is broken:

Command Result
vp build -- --app web broken: -- stripped, Vite parses --app web, web becomes the build root (Cannot resolve entry module web/index.html), the project config never loads
vp build -- -- --app web still broken: second -- stripped too
vp build -- -- -- --app web works: config sees ARGV=["build","--","--app","web"]

So global vp needs three -- where Vite needs one, and a project-local vp needs two.

Expected: vp dev -- --app / vp build -- --app behave exactly like vite dev -- --app — one --, trailing args preserved in the spawned Vite process's process.argv.

Reproduction

See steps below (three files, no dependencies).

Steps to reproduce
mkdir repro && cd repro
cat > package.json <<'PKG'
{ "name": "repro", "private": true, "type": "module" }
PKG
cat > vite.config.ts <<'CFG'
console.log('ARGV=' + JSON.stringify(process.argv.slice(2)));
export default {};
CFG
cat > index.html <<'HTML'
<!doctype html><html><body>hi</body></html>
HTML

vp build -- --app web        # fails: Cannot resolve entry module web/index.html, no ARGV log
vp build -- -- -- --app web  # works: ARGV=["build","--","--app","web"]
System Info
vp v0.2.2 (global), macOS (Darwin 25.5.0)
Also reproducible on main
Used Package Manager

pnpm

Logs
Validations
Lingua principale
Rust
Stelle
5.8k
Fork
263
Merge medio
1g 3h
PR unite (30g)
147

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di voidzero-dev/vite-plus

Tutte le issue di voidzero-dev/vite-plus

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.