Skip to content

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

Open
nicohrubec wants to merge 3 commits into
developfrom
feat/nuxt-remove-deprecated-module-options
Open

feat(nuxt)!: Remove deprecated sourceMapsUploadOptions module option#22875
nicohrubec wants to merge 3 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

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