René's URL Explorer Experiment


Title: @sentry/sveltekit 11: orchestrion build-time transform emits a module-relative source without sourcesContent, breaking server source map flattening · Issue #25329 · getsentry/sentry-javascript · GitHub

Open Graph Title: @sentry/sveltekit 11: orchestrion build-time transform emits a module-relative source without sourcesContent, breaking server source map flattening · Issue #25329 · getsentry/sentry-javascript

X Title: @sentry/sveltekit 11: orchestrion build-time transform emits a module-relative source without sourcesContent, breaking server source map flattening · Issue #25329 · getsentry/sentry-javascript

Description: Is there an existing issue for this? I have checked for existing issues (closest one: #25322, Nuxt server maps without sourcesContent, which is a different mechanism) How do you use Sentry? Sentry SaaS (sentry.io) Which SDK are you using...

Open Graph Description: Is there an existing issue for this? I have checked for existing issues (closest one: #25322, Nuxt server maps without sourcesContent, which is a different mechanism) How do you use Sentry? Sentry ...

X Description: Is there an existing issue for this? I have checked for existing issues (closest one: #25322, Nuxt server maps without sourcesContent, which is a different mechanism) How do you use Sentry? Sentry ...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25329

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry/sveltekit 11: orchestrion build-time transform emits a module-relative source without sourcesContent, breaking server source map flattening","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues (closest one: #25322, Nuxt server maps without `sourcesContent`, which is a different mechanism)\n\n### How do you use Sentry?\n\nSentry SaaS (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/sveltekit\n\n### SDK Version\n\n11.6.0 (the vendored `@apm-js-collab/code-transformer/lib/transformer.js` is byte-identical in 11.7.0)\n\n### Framework Version\n\n@sveltejs/kit 2.70.3, @sveltejs/adapter-node 5.5.7, Vite 8.3.1 (Rolldown), Node 24, pnpm 11 (isolated `node_modules/.pnpm`)\n\n### Steps to Reproduce\n\n1. SvelteKit app with `sentrySvelteKit()` in `vite.config.ts` (v11 auto-adds the orchestrion bundler plugin) and server code that imports a dependency orchestrion instruments, e.g. `ioredis` or the Vercel AI SDK (`ai`).\n2. `vite build` with `build.sourcemap: true`.\n3. Inspect the SSR output map of a chunk that bundles the instrumented module, e.g. `.svelte-kit/output/server/entries/endpoints/\u003croute>/_server.ts.js.map`.\n\n### Expected Result\n\nEvery entry in `sources` resolves to a real file (or has `sourcesContent`), so source map flattening (Sentry's own `sorcery` pass in `uploadSourceMaps`, or any chaining tool) can follow the chain back to the original sources.\n\n### Actual Result\n\nNext to the real entry for the instrumented file, the map contains an extra, module-relative source with no `sourcesContent`:\n\n```\n480 '../../../../../../../../node_modules/.pnpm/ioredis@5.11.1_\u003chash>/node_modules/ioredis/built/Redis.js'  (has sourcesContent)\n481 '../../../../../../../../ioredis/built/Redis.js'                                                     (NO sourcesContent)\n```\n\nThe second path resolves to `\u003cproject root>/ioredis/built/Redis.js`, which does not exist. The same happens for `ai/dist/index.mjs`. Any flattening step then fails for the whole chunk:\n\n```\nENOENT: no such file or directory, open '\u003cproject root>/ioredis/built/Redis.js'\nENOENT: no such file or directory, open '\u003cproject root>/ai/dist/index.mjs'\n```\n\n`uploadSourceMaps()` in `@sentry/sveltekit/build/esm/vite/sourceMaps.js` catches this as a \"known\" ENOENT and moves on, so the uploaded map for that chunk is left unflattened and stack frames from it resolve to the intermediate SvelteKit/adapter output instead of `src/`. In our app this affects exactly the chunks that bundle an orchestrion-instrumented dependency (2 of ~1,300 server chunks); a build of the same app on @sentry/sveltekit 10.75.3 does not have these two failures.\n\nLikely cause, in the vendored `@apm-js-collab/code-transformer/lib/transformer.js` (`Transformer#transform`):\n\n```js\nconst file = `${moduleName}/${filePath}`;        // e.g. \"ioredis/built/Redis.js\"\ngenerator = sourcemap\n  ? SourceMapGenerator.fromSourceMap(consumer)    // consumer.file = file\n  : new SourceMapGenerator({ file });\nconst code2 = generate(ast, { sourceMap: generator });\n```\n\nWhen the module has no input source map (true for `ioredis/built/Redis.js`), the generated map names its source with the module-relative `file` and never calls `setSourceContent`, and the bundler keeps that name verbatim. Using the transformed module's absolute `id` as the source name, or embedding the original code as `sourcesContent`, would make the map self-contained. Returning `map: null` when the transform only inserts code without moving it might also be enough for Vite/Rolldown to keep the original mapping.\n\n### Additional Context\n\nFound while upgrading a production SvelteKit 2 app from @sentry/sveltekit 10 to 11. Happy to test a fix.\n","author":{"url":"https://github.com/andre-salata","@type":"Person","name":"andre-salata"},"datePublished":"2026-10-13T13:33:21Z","url":"https://github.com/getsentry/sentry-javascript/issues/25329"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6e6ff7fd-fd42-3892-4ccf-10347c0abf2d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id97B4:15A4DC:1D9A993:27C9F8E:6B044779
html-safe-nonce380a88f725cf02fe83415263ad1ab9c269293fcdb0654c7c8807b629b4c2a848
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0I0OjE1QTREQzoxRDlBOTkzOjI3QzlGOEU6NkIwNDQ3NzkiLCJ2aXNpdG9yX2lkIjoiODU0NDM2NjUzMjY3ODE0MTgxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac181530f3cbc97469d6dcad75fd47a3b9eaccc5974c0ae7c63b275ed776396ef7
hovercard-subject-tagissue:5831274233
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/25329/issue_layout
twitter:imagehttps://opengraph.githubassets.com/258b98d3ce00d29c02a13558f2a5708d48561f2ab78c62b5486a8408f39b0076/getsentry/sentry-javascript/issues/25329
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/258b98d3ce00d29c02a13558f2a5708d48561f2ab78c62b5486a8408f39b0076/getsentry/sentry-javascript/issues/25329
og:image:altIs there an existing issue for this? I have checked for existing issues (closest one: #25322, Nuxt server maps without sourcesContent, which is a different mechanism) How do you use Sentry? Sentry ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandre-salata
hostnamegithub.com
expected-hostnamegithub.com
Noned4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/25329#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F25329
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F25329
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25329
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25329
Reloadhttps://github.com/getsentry/sentry-javascript/issues/25329
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25329
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25329
#25772https://github.com/getsentry/sentry-javascript/pull/25772
@sentry/sveltekit 11: orchestrion build-time transform emits a module-relative source without sourcesContent, breaking server source map flatteninghttps://github.com/getsentry/sentry-javascript/issues/25329#top
#25772https://github.com/getsentry/sentry-javascript/pull/25772
https://github.com/Lms24
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
SvelteKithttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22SvelteKit%22
https://github.com/andre-salata
andre-salatahttps://github.com/andre-salata
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25329#issue-5831274233
fix(nuxt): Nuxt 5 server source maps have no sourcesContent #25322https://github.com/getsentry/sentry-javascript/issues/25322
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25329#event-33137445786
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25329#event-33287857066
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25329
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25329#issuecomment-6146747815
Linear Codehttps://linear.app
JS-3928https://linear.app/getsentry/issue/JS-3928
github-actionshttps://github.com/apps/github-actions
SvelteKithttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22SvelteKit%22
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25329#event-33137456478
linear-codehttps://github.com/apps/linear-code
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25329#event-33137557041
JPeer264https://github.com/JPeer264
JPeer264https://github.com/JPeer264
Lms24https://github.com/Lms24
JPeer264https://github.com/JPeer264
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25329#event-33141181208
https://github.com/Lms24
Lms24https://github.com/Lms24
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25329#issuecomment-6148533250
@andre-salatahttps://github.com/andre-salata
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25329#event-33145007181
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Oct 13, 2026https://github.com/getsentry/sentry-javascript/issues/25329
https://github.com/Lms24
Lms24https://github.com/Lms24
on Oct 23, 2026https://github.com/getsentry/sentry-javascript/issues/25329#issuecomment-6360697288
first PRhttps://github.com/nodejs/orchestrion-js/pull/104
apm-js-collab/code-transformer-bundler-plugins#50https://github.com/apm-js-collab/code-transformer-bundler-plugins/pull/50
Lms24https://github.com/Lms24
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#25772https://github.com/getsentry/sentry-javascript/pull/25772
on Oct 29, 2026https://github.com/getsentry/sentry-javascript/issues/25329#event-34615194398
Lms24https://github.com/Lms24
on Oct 29, 2026https://github.com/getsentry/sentry-javascript/issues/25329#event-34615199853
fix(server-utils): Fix orchestrion source maps of instrumented modules (https://github.com/getsentry/sentry-javascript/commit/a36d4b78edc46f9910e8f7e501787370ffd9f6df
https://docs.github.com/articles/closing-issues-via-commit-messages
a36d4b7https://github.com/getsentry/sentry-javascript/commit/a36d4b78edc46f9910e8f7e501787370ffd9f6df
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Nov 5, 2026https://github.com/getsentry/sentry-javascript/issues/25329#issuecomment-6658247161
GitHub Actionshttps://help.github.com/en/actions
#25772https://github.com/getsentry/sentry-javascript/pull/25772
11.11.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/11.11.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/25329
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/25329
Lms24https://github.com/Lms24
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
SvelteKithttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22SvelteKit%22
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.