-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v9] Respect user-provided sourcemap generation settings #13993
Milestone
Comments
s1gr1d
added a commit
that referenced
this issue
Oct 18, 2024
) Nuxt implementation for: #13993 Fixes: #13997 In Nuxt, there are 3 places to set source maps (and all need to be enabled): - `sourcemap` - `nitro.rollupConfig.output.sourcemap` - `vite.build.sourcemap` As Nuxt sets `sourcemap.client: false` ([docs here](https://nuxt.com/docs/api/nuxt-config#sourcemap)), it's not possible to determine whether this setting was set by the user or the framework. Users have to set this manually like this: ```js export default defineNuxtConfig({ sourcemap: { client: true, }, }) ``` With this PR, all source maps are set to `'hidden'` if they were undefined before and keep the setting otherwise. This is done in 3 separate functions (one for vite, rollup and nuxt) to better distinguish between the settings.
Maybe something we should keep an eye on: Nuxt sets |
lforst
changed the title
Respect user-provided sourcemap generation settings
[v9] Respect user-provided sourcemap generation settings
Nov 14, 2024
This was referenced Dec 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Edit by @lforst: Depends on #14286
Description
Currently, most (all?) of our meta framework SDKs enable source map generation even if users explicitly disabled sourcemap generation in their build config. While this improves the onboarding experience because Sentry "just works", it is intrusive and overrides a quite critical user decision. In most frameworks we emit build logs that we do this but it's nevertheless questionable behaviour.
Therefore, we decided to change the behaviour with the next upcoming major for all stable meta framework SDKs:
build.sourcemaps: false
in Vite), we respect this and emit a warning that errors won't be unminified in Sentry. We will not upload anything.true
,hidden
,inline
, etc). We respect this and don't do anything (i.e. deletion) besides uploading. Uploading will still emit build logs as today.filesToDeleteAfterUpload
to delete all.map
filesFor stable SDKs, this change is behaviour-breaking with significant user impact. So we will only do this in the upcoming major.
Stable SDKs
For SDKs currently in beta, we can change this right now, which is also a good opportunity to trial the new behaviour
SDKs in Beta
Considered Trade-offs
The text was updated successfully, but these errors were encountered: