Repository navigation
Conversation
The wizard set `build.sourcemap: true` or `devtool: "source-map"`. The Sentry plugin treats an explicit setting as the user's choice and keeps the source maps in the build output after uploading them. Leave the setting unset instead, so the plugin generates hidden source maps and removes them after the upload. Ask before removing a setting that disables source maps, and keep all other explicit values. Fixes #1395 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wizard cannot analyze Look up `build` and `build.sourcemap` with `getObjectProperty`, which skips object spreads, and add the plugin if `build` is not an object. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 source maps wizard set
build.sourcemap: true(Vite) ordevtool: "source-map"(webpack). The Sentry plugin treats an explicit setting as the user's choice, so it uploaded the source maps but left them in the build output with asourceMappingURLcomment. Deploying that output publishes the original source code.The wizard now leaves the setting unset. The plugin then generates hidden source maps, uploads them and keeps them out of the build output. Since #1382, the wizard installs a plugin version with this behavior (11.12 or later).
sourcemap: false, webpackdevtool: falseor a value like"eval"), the wizard asks before removing the setting and warns if the user keeps it.devtool: falsetogether withSourceMapDevToolPluginis left alone.nosources-source-mapwere replaced.Removing the setting gives the same result as the issue's suggestion (hidden source maps plus a deletion option), without writing
deleteSourcemapsAfterUploadorfilesToDeleteAfterUpload, which getsentry/sentry-javascript#26908 deprecates.Fixes #1395