Repository navigation
perf(build): reduce preload helper allocations and size - #23717
Open
schiller-manuel wants to merge 1 commit into
Open
schiller-manuel wants to merge 1 commit into
schiller-manuel wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Inline preload cache handling and resolve CSS load errors as results, allowing
Promise.allto wait for every stylesheet without extra callbacks or settlement wrappers. Preserve pending-load sharing andvite:preloadErrorbehavior.With Vite 8.3.4/Rolldown 1.2.13, TanStack's React minimal bundle shrinks by 97 bytes gzip. All 15 Vite benchmark scenarios shrink by 60–101 bytes gzip.
Validation: 1,042 unit tests and 254 browser tests pass, plus build, typecheck, lint, and formatting. Added coverage for concurrency, error ordering/cancellation, SSR links, and module rejection payloads.
AI-assisted; checked against the original helper with behavior tests and emitted-bundle comparisons. CSS retry behavior proposed in #23710 is separate.