Uh oh!
There was an error while loading. Please reload this page.
feat(gatsby): Add optional deleteSourcemapsAfterUpload - #13610
Conversation
AbhiPrasad
commented
Sep 9, 2024
@getsentry/team-web-sdk-frontend what does everything think about exposing the API like this? |
s1gr1d
commented
Sep 9, 2024
I would align the API with the other SDKs. The other SDKs have it mostly like this: sourceMapsUploadOptions: {sourcemaps: {assets: ['foo/*.js'],ignore: ['bar/*.js'],filesToDeleteAfterUpload: ['baz/*.js'],},}, |
lforst
commented
Sep 9, 2024
I actually think the way we have structured this is suboptimal. Gave the same feedback here: #13493
All other options should be accessible over an |
julianCast
commented
Sep 9, 2024
I could pass |
julianCast
commented
Sep 11, 2024
I've modified this work by using a boolean |
deleteSourcemapsAfterUploadThis PR adds the external contributor to the CHANGELOG.md file, so that they are credited for their contribution. See #13610 --------- Co-authored-by: lforst <8118419+lforst@users.noreply.github.com> Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
AbhiPrasad
commented
Sep 23, 2024
This was released with https://github.com/getsentry/sentry-javascript/releases/tag/8.31.0 - thanks for the PR @julianCast! |
Related #13582
This work adds the
deleteSourcemapsAfterUploadoption to the Gatsby plugin, allowing it to be passed to the Webpack plugin to set thesourceMapFilesToDeleteAfterUploadwithout exposing the API.This simplifies our workflow by eliminating the need to apply a Yarn patch to modify the package whenever we want to use
filesToDeleteAfterUpload.Before submitting a pull request, please take a look at our
Contributing guidelines and verify:
yarn lint) & (yarn test).