FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(sveltekit): Upload source maps with SvelteKit 3 by chargome · Pull Request #25139 · getsentry/sentry-javascript · GitHub

Repository navigation

fix(sveltekit): Upload source maps with SvelteKit 3 - #25139

Draft
chargome wants to merge 1 commit into
developfrom
js-3885-e2e-tests
Draft

chargome wants to merge 1 commit into
developfrom
js-3885-e2e-tests

Conversation

chargome commented Oct 7, 2026

Copy link
Copy Markdown
Member

SvelteKit 3 builds all environments in a single Vite build and runs the adapter in a post buildApp hook. Our upload waited for a separate SSR build in closeBundle, which Kit 3 never does, so nothing was uploaded. We now also upload from a post buildApp hook, but only once an environment has been built. Kit 2 builds only after all buildApp hooks have run, so its closeBundle path still does the upload.

Source maps were also never deleted after upload, on Kit 2 or Kit 3. The deletion check read build.sourcemap after our own plugin had already set it.

The new sveltekit-3-sourcemaps e2e app builds against a mock Sentry server. It asserts that the upload happens, that every debug ID has a map, and that no maps are left in build/.

Fixes #25096

SvelteKit 3 builds all environments in one Vite build and invokes the adapter
in a post buildApp hook, so the closeBundle upload never ran. Upload from a
post buildApp hook as well, once an environment has been built.

Source maps were also never deleted after upload, because the deletion check
read build.sourcemap after our own plugin had already set it.

Fixes #25096
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

linear-code Bot commented Oct 7, 2026

Copy link
Copy Markdown

JS-3885

chargome self-assigned this Oct 7, 2026

chargome commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

bugbot run

cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Cursor Bugbot has reviewed your changes and found 1 potential issue.

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 424ee8f. Configure here.

This branch has not been deployed

No deployments
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@sentry/sveltekit: source maps are never uploaded with SvelteKit 3

1 participant


Back | FazBrowse Home | New Git URL