Skip to content

fix(vite-dev-server): sync previously missed Vite updates - #50

Merged
kazupon merged 4 commits into
mainfrom
fix/sync-vite-upstream-backlog
Sep 30, 2026
Merged

kazupon merged 4 commits into
mainfrom
fix/sync-vite-upstream-backlog

Conversation

@kazupon

@kazupon kazupon commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Sync upstream Vite changes that predate the 8.3.0-beta.1 sync but were never ported:

These keep the fork aligned with upstream so that later upstream patches apply cleanly. Worker-side servers cannot restart, so #22992 is covered by unit tests that replace server.environments from a hotUpdate hook. formatAndTruncateFileList also gains unit tests.

Promise.allSettled() takes the Set directly instead of upstream's [...this._processesing], because the pre-commit lint fix applies unicorn(no-useless-spread). The server.fs check for env transports (vitejs/vite#22159) is handled separately in #51.

Validated with typecheck, lint, vp run test:unit:vite:node (649 → 655 tests) and the @vrowzer/vite-dev-server build. Integration and E2E tests were not run locally.

Port vitejs/vite#21535 (d00e806d7). The bundled dev part is not ported.
…tart

Port vitejs/vite#22992 (b1186c36d). Worker-side servers cannot restart, so the tests replace server.environments from a hotUpdate hook instead of calling server.restart().
Port the parts of vitejs/vite#23357 (f79413353) that touch ported code, including the commented-out upstream code in ws.ts. Stubbed or unported parts (module-runner runner, cli, shortcuts, oxcResolvePlugin, bundled dev, importAnalysisBuild, ssrTransform) are skipped.

Promise.allSettled() takes the Set directly instead of upstream's [...this._processesing], because the pre-commit lint fix applies unicorn(no-useless-spread).
@kazupon
kazupon force-pushed the fix/sync-vite-upstream-backlog branch from 5705153 to 968386a Compare September 30, 2026 10:30
@kazupon
kazupon merged commit 17a4470 into main Sep 30, 2026
4 checks passed
@kazupon
kazupon deleted the fix/sync-vite-upstream-backlog branch September 30, 2026 10:37
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.

1 participant