Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(v10/sveltekit): Read SvelteKit config from the Vite plugin - #23998

Merged
chargome merged 1 commit into
v10from
backport-v10/23678-read-kit-config-from-vite-plugin
Sep 3, 2026
Merged

fix(v10/sveltekit): Read SvelteKit config from the Vite plugin#23998
chargome merged 1 commit into
v10from
backport-v10/23678-read-kit-config-from-vite-plugin

Conversation

@chargome

@chargome chargome commented Sep 3, 2026

Copy link
Copy Markdown
Member

Backport of: #23678

Differences to the original PR

  • src/vite/sentryVitePlugins.ts: dropped the warnOnRemovedBuildOptions(options, ['unstable_sentryVitePluginOptions']) call. That line is pre-existing context on develop from feat(sveltekit)!: Remove unstable_sentryVitePluginOptions #23366, which removed the option in v11 — v10 still supports it, and warnOnRemovedBuildOptions isn't exported from v10's @sentry/core.
  • src/vite/sentryVitePlugins.ts (generateVitePluginOptions): kept v10's deprecated sourceMapsUploadOptions / unstable_sentryVitePluginOptions merging untouched. Only this PR's actual change was applied — adapter is now destructured out of the options handed to the Vite plugin and the explicit adapter: svelteKitPluginOptions.adapter was dropped. The placeholder is _filtered5 rather than _filtered3 because v10 filters two extra deprecated options.
  • test/vite/sentrySvelteKitPlugins.test.ts: plugin-count expectations are v10's counts plus one for the new kit config resolver (8/3/4/7), not develop's (9/4/5/8). v10 has no orchestrion Vite plugin — that's feat(sveltekit): Auto-wire orchestrion build-time instrumentation #22768, v11-only.

@chargome chargome self-assigned this Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.76 kB added added
@sentry/browser - with treeshaking flags 26.2 kB added added
@sentry/browser (incl. Tracing) 46.64 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.42 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.39 kB added added
@sentry/browser (incl. Tracing, Replay) 85.9 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.52 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 90.62 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 103.27 kB added added
@sentry/browser (incl. Feedback) 44.94 kB added added
@sentry/browser (incl. sendFeedback) 32.56 kB added added
@sentry/browser (incl. FeedbackAsync) 37.69 kB added added
@sentry/browser (incl. Metrics) 28.85 kB added added
@sentry/browser (incl. Logs) 29.07 kB added added
@sentry/browser (incl. Metrics & Logs) 29.77 kB added added
@sentry/react 29.57 kB added added
@sentry/react (incl. Tracing) 48.9 kB added added
@sentry/vue 33.19 kB added added
@sentry/vue (incl. Tracing) 48.61 kB added added
@sentry/svelte 27.79 kB added added
CDN Bundle 30.15 kB added added
CDN Bundle (incl. Tracing) 48.6 kB added added
CDN Bundle (incl. Logs, Metrics) 31.73 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 49.9 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 71.02 kB added added
CDN Bundle (incl. Tracing, Replay) 86.12 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.43 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 91.92 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 93.2 kB added added
CDN Bundle - uncompressed 89.89 kB added added
CDN Bundle (incl. Tracing) - uncompressed 146.87 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.6 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 150.85 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.43 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.17 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 270.14 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.87 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 283.83 kB added added
@sentry/nextjs (client) 51.44 kB added added
@sentry/sveltekit (client) 47.06 kB added added
@sentry/core/server 80.61 kB added added
@sentry/core/browser 66.77 kB added added
@sentry/node-core 63.28 kB added added
@sentry/node 125.81 kB added added
@sentry/node (incl. diagnostics channel injection) 169.89 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B added added
@sentry/node/light 51.45 kB added added
@sentry/node - without tracing 74.97 kB added added
@sentry/aws-serverless 84.23 kB added added
@sentry/cloudflare (withSentry) - minified 202.61 kB added added
@sentry/cloudflare (withSentry) 498.9 kB added added

@chargome

chargome commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@cursor 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit e8dcd3e. Configure here.

@chargome
chargome marked this pull request as ready for review September 3, 2026 12:17
@chargome
chargome requested a review from a team as a code owner September 3, 2026 12:17
@chargome
chargome requested review from a team, Lms24, mydea and s1gr1d and removed request for a team September 3, 2026 12:17
@chargome
chargome merged commit 8d6df44 into v10 Sep 3, 2026
46 checks passed
@chargome
chargome deleted the backport-v10/23678-read-kit-config-from-vite-plugin branch September 3, 2026 12:29
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.

2 participants