Repository navigation
fix(vite-dev-server): sync previously missed Vite updates - #50
Merged
Merged
Conversation
Port vitejs/vite#21535 (d00e806d7). The bundled dev part is not ported.
…void duplicate Object.values calls Port vitejs/vite#22790 (1113acf6c).
…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
force-pushed
the
fix/sync-vite-upstream-backlog
branch
from
September 30, 2026 10:30
5705153 to
968386a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync upstream Vite changes that predate the 8.3.0-beta.1 sync but were never ported:
Object.valuescalls vitejs/vite#22790: use the pre-definedenvironmentsvariable inhandleHMRUpdate, which #22992 builds on@e18e/eslint-pluginvitejs/vite#23357: apply the e18e modernization rewrites to ported code, including the commented-out upstream code inws.tsThese 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.environmentsfrom ahotUpdatehook.formatAndTruncateFileListalso gains unit tests.Promise.allSettled()takes the Set directly instead of upstream's[...this._processesing], because the pre-commit lint fix appliesunicorn(no-useless-spread). Theserver.fscheck 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-serverbuild. Integration and E2E tests were not run locally.