Skip to content

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Feb 18, 2025

Some framework SDKs require us to lazily set a "fallback" filesToDeleteAfterSourcemaps option that we don't yet know at plugin creation time. This PR widens the accepted type for filesToDeleteAfterSourcemaps to also allow us (as well as users) to pass in a Promise<string | string[]> to do so. This promise can resolve whenever we know what to set.

Necessary for SvelteKit

ref getsentry/sentry-javascript#15414

@Lms24 Lms24 self-assigned this Feb 18, 2025
@Lms24 Lms24 requested a review from s1gr1d February 18, 2025 13:39
Copy link
Member

@s1gr1d s1gr1d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Lms24 Lms24 merged commit 4255012 into main Feb 18, 2025
18 checks passed
@Lms24 Lms24 deleted the lms/feat-allow-filesToDeleteAfterUpload-promise branch February 18, 2025 16:39
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Feb 21, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.1.2 | 3.2.0 |


## [v3.2.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#320)

-   feat(core): Accept and await a promise in `sourcemaps.filesToDeleteAfterUpload` ([#677](getsentry/sentry-javascript-bundler-plugins#677))
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Feb 21, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.1.2 | 3.2.0 |


## [v3.2.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#320)

-   feat(core): Accept and await a promise in `sourcemaps.filesToDeleteAfterUpload` ([#677](getsentry/sentry-javascript-bundler-plugins#677))
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.

3 participants