GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `vp dev`& `vp build` break argv passthrough by stripping the `--` separator · Issue #2250 · voidzero-dev/vite-plus

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

New issue
Copy link
New issue
Copy link
Closed
Bug
#3497
Closed
vp dev& vp build break argv passthrough by stripping the -- separator#2250
Bug
#3497
Copy link
Assignees
fengmk2
Labels
bugSomething isn't workingtriage: failed

Description

@TheAlexLichter
TheAlexLichter
opened on Jul 25, 2026
Issue body actions

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

  • Read the Contributing Guidelines.
  • Check that there isn't already an issue for the same bug.
  • Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
  • The provided reproduction is a minimal reproducible example.

Activity

  1. TheAlexLichter
    added
    pending triage
    on Jul 25, 2026
  2. TheAlexLichter
    changed the title [-]vp dev/build strip the `--` separator, breaking Vite argv passthrough[/-] [+]`vp dev`& `vp build` break argv passthrough by stripping the `--` separator[/+] on Jul 25, 2026
  3. TheAlexLichter
    added the
    Bug
    issue type on Jul 25, 2026
  4. TheAlexLichter
    added
    bugSomething isn't working
    and removed
    pending triage
    on Jul 25, 2026
  5. TheAlexLichter
    assigned
    fengmk2
    and
    wan9chi
    on Jul 26, 2026
  6. fengmk2
    unassigned
    fengmk2
    and
    wan9chi
    on Nov 19, 2026
  7. fengmk2
    closed this as completedon Nov 19, 2026
  8. fengmk2
    reopened this on Nov 19, 2026
  9. voidzero-bot commented on Nov 19, 2026

    @voidzero-bot
    voidzero-botBot
    on Nov 19, 2026
    Contributor
    More actions

    Triage failed unexpectedly (attempt 1 of 3).

    Run: https://github.com/voidzero-dev/vite-plus/actions/runs/44535905528

    I can retry if a new comment provides more information or asks me to try again.

    Error:

    [flue] skill("triage") failed: 429 status code (no body)
    
  10. voidzero-bot
    added
    triage: failed
    on Nov 19, 2026
  11. voidzero-bot commented on Nov 19, 2026

    @voidzero-bot
    voidzero-botBot
    on Nov 19, 2026
    Contributor
    More actions

    Triage failed unexpectedly (attempt 2 of 3).

    Run: https://github.com/voidzero-dev/vite-plus/actions/runs/44535905528

    I can retry if a new comment provides more information or asks me to try again.

    Error:

    [flue] skill("triage") failed: 429 status code (no body)
    
  12. voidzero-bot
    added
    triage: failed
    and removed
    triage: failed
    on Nov 19, 2026
  13. fengmk2
    self-assigned this
    on Nov 19, 2026
  14. fengmk2
    closed this as completedin #3497on Nov 20, 2026
  15. jong-kyung
    added a commit that references this issue on Nov 20, 2026

    fix(cli): forward custom arguments to vp dev and vp build (voidzero-d…

    This issue will close once commit b322320 is merged into the 'main' branch.
    b322320
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @fengmk2
    fengmk2

Labels

bugSomething isn't workingtriage: failed

Type

Bug

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.