Repository navigation
fix(cli): Leave source maps unset in the wizard's Rollup and esbuild snippets - #2834
Merged
Merged
Conversation
…snippets
The Rollup and esbuild snippets told users to set `sourcemap: true`. The
Sentry plugins then treat the source maps as the user's and keep them in
the build output, where anyone can download them. esbuild's `true` also
adds a `sourceMappingURL` comment that points to them. The snippets now
leave the setting unset, like the Vite and webpack flows, so the plugin
turns on source maps and removes them after the upload. A comment names
`sourcemaps: { delete: true }` for users who set source maps themselves.
The plugins do this since 11.12.0 (Rollup, Vite, webpack) and 11.13.0
(esbuild). Older plugins turn on no source maps, so the build would
upload none. The wizard now imports the plugin from an installed SDK only
from 11.13.0 on, and otherwise uses `@sentry/bundler-plugins`. It warns
when the user keeps an older `@sentry/bundler-plugins`. This replaces the
per-SDK minimum versions, which were all older.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
msonnb
marked this pull request as ready for review
December 3, 2026 14:52
BYK
approved these changes
Dec 4, 2026
14 of 16 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Rollup and esbuild flows of
sentry wizard -i sourcemapsshow a config snippet withsourcemap: true // Source map generation must be turned on. Since 11.12.0 (Rollup, Vite, webpack) and 11.13.0 (esbuild), the Sentry plugins turn on source maps themselves when the bundler setting is unset, upload them, and remove them from the build output. Source maps that the user turns on count as the user's and stay in the build output, where anyone can download them. With esbuild,truealso adds asourceMappingURLcomment that points to them.The updated docs removed this step. The Vite and webpack flows already leave the setting unset (#2599).
sourcemaps: { delete: true }for users who set source maps themselves.@sentry/bundler-plugins. This replaces the per-SDK minimum versions (11.0.0 and 11.10.0), which were all older. Installs keep the^11range.@sentry/bundler-pluginsolder than 11.13.0.The version check also covers the Vite and webpack flows: a user who declined the SDK update and stayed below 11.12.0 got no source maps and no warning.