Repository navigation
Conversation
Contributor
size-limit report 📦Compared: e4a4cad (PR test merge using develop at 5b9805f) Against: 13dcbf8 (develop) · base run #67598
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 3 not successful, 62 successful. See the run.
Successful checks
|
timfish
force-pushed
the
ref/sveltekit-call-site-rewriter
branch
from
November 4, 2026 14:23
48f0c25 to
9aafb1f
Compare
The `load` hook served a proxy module that re-exported the route file under a `?sentry-auto-wrap` query. That doubled the module count per route, leaked the query into stack frames and source maps, and could not wrap `export { load } from './shared'`.
The transform now wraps the `load` export in the route file itself, so the query and the code that stripped it again are gone. It reads the code Vite hands over instead of a second copy from disk, so acorn is no longer needed.
The proxy module renamed the route `load` to `load$1` in the bundle. In-place wrapping keeps the name.
… app Load functions are wrapped in the route file itself, so no module carries the `?sentry-auto-wrap` query.
timfish
force-pushed
the
ref/sveltekit-call-site-rewriter
branch
from
November 23, 2026 15:27
9aafb1f to
1f3c7db
Compare
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.
Why: The
loadhook served a proxy module that re-exported each route file under a?sentry-auto-wrapquery. That doubled the module count per route, put the query into stack frames and source maps (which needed extra code inrewriteFramesIntegrationand the source map clean-up to remove it), and could not wrapexport { load } from './shared'. The transform now wraps theloadexport in the route file itself and skips loads the user wrapped by hand. It reads the code Vite passes in instead of reading the file from disk a second time, soacornand@sveltejs/acorn-typescriptare no longer dependencies.How to review: Start with
src/vite/autoInstrument.ts. The other source changes remove the query handling.Unsure about: At build time, a
loadthat ends insatisfies PageLoaddoesn't count as already wrapped. The runtime guard still stops a double wrap.Ref #25776