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(core): Add injectRelease and uploadSourceMaps options #190

Merged
merged 2 commits into from
Mar 29, 2023
Merged

feat(core): Add injectRelease and uploadSourceMaps options #190

merged 2 commits into from
Mar 29, 2023

Conversation

alexandresoro
Copy link
Contributor

Closes #186

This PR exposes two new user options:

  • disableReleaseInjection: if set to true, it won't add any release information into the bundled files.
  • disableSourceMapsUpload: if set to true, the process to upload generated source maps to Sentry will be skipped.

Tests have been updated accordingly.

Regarding disableReleaseInjection, the proposed solution is to be "transparent" related to the transform action. It will simply return what was passed as input and bypass the prepend step.
This may not be optimal, but I did not manage to find any less intrusive solution, as completely disabling the transformation seem to also disable the rest of the process, which may still be desired.

@alexandresoro alexandresoro marked this pull request as ready for review March 28, 2023 18:23
@lforst lforst self-requested a review March 29, 2023 08:46
@lforst lforst changed the title feat(core): Allow user to disable release injection or source maps upload feat(core): Add options to disable release injection and source map upload Mar 29, 2023
@lforst lforst changed the title feat(core): Add options to disable release injection and source map upload feat(core): Add injectRelease and uploadSourceMaps options to permit disabling of either functionality Mar 29, 2023
@lforst lforst changed the title feat(core): Add injectRelease and uploadSourceMaps options to permit disabling of either functionality feat(core): Add injectRelease and uploadSourceMaps options Mar 29, 2023
@lforst
Copy link
Member

lforst commented Mar 29, 2023

Thank you very much for taking the time to implement this! :)

@lforst lforst merged commit f49cc63 into getsentry:main Mar 29, 2023
16 checks passed
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.

Allow release injection or upload only tasks
2 participants