Skip to content
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

feat(gatsby): Preserve user-provided source map settings #15006

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Jan 14, 2025

closes #14993

Generates source maps and deletes them after uploading them to Sentry per default.

Scenarios:

  1. users set config.devtool to generate source maps -> keep config.devtool (a.k.a. source map) setting
  2. users set config.devtool to something different that "source-map" or "hidden-source-map"
  3. config.devtool is not defined

--> In case 3 we are automatically setting filesToDeleteafterUpload
But deleteFilesAfterUpload: true overwrites the behavior and will always delete the source maps. Also in case 1 and 2.

@s1gr1d s1gr1d merged commit 550094a into develop Jan 15, 2025
35 checks passed
@s1gr1d s1gr1d deleted the sig/sourcemaps-gatsby branch January 15, 2025 11:20
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.

Gatsby: Respect user-provided source map generation settings
2 participants