fix(v10/nuxt): Delete source maps after Nitro finishes building by s1gr1d · Pull Request #23508 · getsentry/sentry-javascript · GitHub
Skip to content

fix(v10/nuxt): Delete source maps after Nitro finishes building - #23508

Merged
s1gr1d merged 2 commits into
v10from
sig/v10-nuxt-sourcemaps
Aug 24, 2026
Merged

fix(v10/nuxt): Delete source maps after Nitro finishes building#23508
s1gr1d merged 2 commits into
v10from
sig/v10-nuxt-sourcemaps

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Aug 24, 2026

Copy link
Copy Markdown
Member

Backport of #23407

Closes #22801

Defer source map deletion until Nuxt's `close` hook, after Nitro has
copied public assets into the final output directory.

## Root cause

The Vite plugin previously deleted source maps from Nuxt's intermediate
client build output. Nitro subsequently copied those assets into the
final output, causing the source maps to reappear.

The Vite and Rollup plugins continue to inject debug IDs and upload
source maps, but receive options with deletion disabled. Once the
complete Nuxt build finishes, the Nuxt integration uses the bundler
plugin manager to delete artifacts.

Backport of #23407 to v10. On v10 the Nuxt SDK still uses the published
`@sentry/vite-plugin`/`@sentry/rollup-plugin` v5 packages rather than the
in-repo `@sentry/bundler-plugins`, so the build plugin manager is taken
from `@sentry/bundler-plugin-core` — the same v5 core those plugins are
built on, and the one `@sentry/nextjs` and `@sentry/nitro` already use.

Closes #22801

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@s1gr1d
s1gr1d requested review from a team as code owners August 24, 2026 09:26
@s1gr1d
s1gr1d requested review from JPeer264, chargome, isaacs, logaretm, msonnb and nicohrubec and removed request for a team August 24, 2026 09:26
@s1gr1d
s1gr1d changed the base branch from develop to v10 August 24, 2026 09:26
@s1gr1d s1gr1d changed the title feat(v10/core): Add url.full attribute to core fetch instrumentation ( fix(v10/nuxt): Delete source maps after Nitro finishes building Aug 24, 2026
@s1gr1d
s1gr1d enabled auto-merge (squash) August 24, 2026 11:22
@github-actions

Copy link
Copy Markdown
Contributor

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: filesToDeleteAfterUpload does not delete file after build (nuxt generate)

3 participants