Closed
Description
Problem Statement
In light of the conversation in sveltejs/kit#10068 we should think about deleting source maps after they were uploaded to Sentry.
Solution Brainstorm
I think the best course of action would be:
- By default, our plugin would delete all maps if it was our plugin that enabled source maps generation. It's important to note here that we cannot say with certainty that in this case users actually didn't want source maps generated. Vice versa, we also cannot say that users would have wanted source maps if it was already enabled (another plugin before or after us can interfere here).
- Provide an option in the
sentrySvelteKit
plugin factory function:deleteSourceMapsAfterUpload: boolean
. This option, if specified, overrides our deletion decision described above.
Alternatives considered:
- No default behaviour and users have to explcitly enable/disable
deleteSourceMapsAfterUpload
. Default value TBD. - We leave deletion up to users and do nothing in this regard
Metadata
Metadata
Assignees
Type
Projects
Status
No status