fix(vite-dev-server): sync Vite 8.3.1 optimizer and asset URL fixes - #49
Merged
Merged
Conversation
…ose before init Port vitejs/vite#23567 (5f894339d).
Port vitejs/vite#23586 (744269e5b). The html.ts part is not ported because buildHtmlPlugin does not exist in this fork. Update the asset URL tests for the new placeholder format, where the postfix is carried in URL metadata instead of trailing the token.
…ppings Port vitejs/vite#23590 (5e4b9ca3d).
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 the remaining Vite 8.3.1 changes to ported code that is disabled or build-only in the preview Worker (
refers/vite42a4ea7 → cf5c028), keeping the fork aligned with upstream:optimizeDeps.includecomment vitejs/vite#23489: update theoptimizeDeps.includecommenttypeDepsOptimizer.initStateand log when waiting for a dep before initrequire()fallbacksrenderBuiltUrlvitejs/vite#23586: pass queries torenderBuiltUrl(thehtml.tspart is not ported becausebuildHtmlPlugindoes not exist in this fork)browser: falsemappingsEach upstream change is a separate commit. Where upstream only covers a change with integration or E2E tests (#23567, #23600, #23590), equivalent unit tests are added. The asset URL tests are updated for the new placeholder format, in which the postfix is carried in URL metadata instead of trailing the token, and a
renderBuiltUrltest mirrors the upstream build test.The dependency optimizer stays disabled in the Worker. Changes to code that is not ported (bundled dev,
buildHtmlPlugin,resolveRolldownOptions, proxy, SSR) are not included.Validated with typecheck, lint,
vp run test:unit:vite:node(642 → 649 tests) and the@vrowzer/vite-dev-serverbuild. Integration and E2E tests were not run locally.