Skip to content

feat(nuxt)!: Remove deprecated sourceMapsUploadOptions module option - #22875

Merged
nicohrubec merged 4 commits into
developfrom
feat/nuxt-remove-deprecated-module-options
Aug 3, 2026
Merged

feat(nuxt)!: Remove deprecated sourceMapsUploadOptions module option#22875
nicohrubec merged 4 commits into
developfrom
feat/nuxt-remove-deprecated-module-options

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Jul 30, 2026

Copy link
Copy Markdown
Member

Removes the deprecated sourceMapsUploadOptions module option from @sentry/nuxt in favor of the existing root-level options.

Fixes #22249

nicohrubec and others added 3 commits July 30, 2026 17:07
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ntics

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicohrubec nicohrubec changed the title ref(nuxt)!: Remove deprecated sourceMapsUploadOptions module option feat(nuxt)!: Remove deprecated sourceMapsUploadOptions module option Jul 31, 2026
@nicohrubec
nicohrubec marked this pull request as ready for review July 31, 2026 07:39
@nicohrubec
nicohrubec requested a review from a team as a code owner July 31, 2026 07:39
@nicohrubec
nicohrubec requested review from chargome and s1gr1d and removed request for a team July 31, 2026 07:39
Comment on lines +165 to +169
/**
* Users can set `filesToDeleteAfterUpload` themselves. If they don't, we fall back to deleting the
* client/server source maps — but only the ones Sentry generated itself (i.e. when the user didn't
* configure source maps at all). If the user explicitly set source maps, we leave their files alone.
*/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nuxt has no undefined default values for source maps so this "deleting by default" cannot happen in the default case. Only if users would set them to undefined.

Maybe that's worth pointing out here. Also a link to the docs: https://nuxt.com/docs/4.x/api/nuxt-config#sourcemap

@chargome chargome left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, might need a migration entry for nuxt

? true
: // eslint-disable-next-line typescript/no-deprecated
(sourceMapsUploadOptions.enabled ?? true);
const sourceMapsEnabled = moduleOptions.sourcemaps?.disable !== true;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

agreed hahaha

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.91 kB - -
@sentry/browser - with treeshaking flags 28.11 kB - -
@sentry/browser (incl. Tracing) 47.38 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.38 kB - -
@sentry/browser (incl. Tracing, Profiling) 52.15 kB - -
@sentry/browser (incl. Tracing, Replay) 86.72 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.15 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 91.43 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 104.06 kB - -
@sentry/browser (incl. Feedback) 47.22 kB - -
@sentry/browser (incl. sendFeedback) 34.76 kB - -
@sentry/browser (incl. FeedbackAsync) 39.86 kB - -
@sentry/browser (incl. Metrics) 30.99 kB - -
@sentry/browser (incl. Logs) 31.22 kB - -
@sentry/browser (incl. Metrics & Logs) 31.89 kB - -
@sentry/react 31.73 kB - -
@sentry/react (incl. Tracing) 49.64 kB - -
@sentry/vue 34.98 kB - -
@sentry/vue (incl. Tracing) 49.36 kB - -
@sentry/svelte 29.94 kB - -
CDN Bundle 31.98 kB - -
CDN Bundle (incl. Tracing) 47.73 kB - -
CDN Bundle (incl. Logs, Metrics) 33.55 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.09 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 72.9 kB - -
CDN Bundle (incl. Tracing, Replay) 85.36 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.66 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.47 kB - -
CDN Bundle - uncompressed 95.49 kB - -
CDN Bundle (incl. Tracing) - uncompressed 143.25 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.2 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 147.23 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.96 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 262.51 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 266.47 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 276.21 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 280.17 kB - -
@sentry/nextjs (client) 52.21 kB - -
@sentry/sveltekit (client) 47.82 kB - -
@sentry/core/server 79.99 kB - -
@sentry/core/browser 51.92 kB - -
@sentry/node 121.85 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 85.32 kB - -
@sentry/aws-serverless 93.95 kB - -
@sentry/cloudflare (withSentry) - minified 199.19 kB - -
@sentry/cloudflare (withSentry) 490.56 kB - -

View base workflow run

@nicohrubec
nicohrubec merged commit 9e969da into develop Aug 3, 2026
265 of 266 checks passed
@nicohrubec
nicohrubec deleted the feat/nuxt-remove-deprecated-module-options branch August 3, 2026 09:30
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.

Nuxt: remove deprecated module options

3 participants