Skip to content

Conversation

chargome
Copy link
Member

@chargome chargome commented Sep 2, 2025

This PR does a few things related to source map uploads without preparing artifacts:

  • When prepareArtifacts is set to false we previously still used glob for finding upload assets. Since these were passed directly to the CLI without moving them to a temp folder before this led to a one-request-per-asset situation which we want to avoid. Now with this change we just pass the build artifacts path directly CLI, which will handle gathering the files to upload and batching them more efficiently.

  • Emits a log when custom assets are provided and prepareArtifacts is set to false since this will be passed to the cli directly as well.

  • Early return when an empty assets array was provided.

@chargome chargome self-assigned this Sep 2, 2025
@chargome chargome merged commit 07c25ce into main Sep 2, 2025
23 of 24 checks passed
@chargome chargome deleted the cg-fix-upload-without-glob branch September 2, 2025 14:45
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 2, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 4.1.1 | 4.3.0 |


## [v4.3.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#430)

- feat(core): Extend deploy option to allow opting out of automatic deploy creation ([#801](getsentry/sentry-javascript-bundler-plugins#801))
- feat(core): No asset globbing for direct upload ([#800](getsentry/sentry-javascript-bundler-plugins#800))


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

- feat(core): Add `prepareArtifacts` option for uploading sourcemaps ([#794](getsentry/sentry-javascript-bundler-plugins#794))
- perf: use premove for build clean ([#792](getsentry/sentry-javascript-bundler-plugins#792))
- fix(core): Forward headers option to sentry-cli ([#797](getsentry/sentry-javascript-bundler-plugins#797))

Work in this release contributed by [@liAmirali](https://github.com/liAmirali). Thank you for your contribution!
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 2, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 4.1.1 | 4.3.0 |


## [v4.3.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#430)

- feat(core): Extend deploy option to allow opting out of automatic deploy creation ([#801](getsentry/sentry-javascript-bundler-plugins#801))
- feat(core): No asset globbing for direct upload ([#800](getsentry/sentry-javascript-bundler-plugins#800))


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

- feat(core): Add `prepareArtifacts` option for uploading sourcemaps ([#794](getsentry/sentry-javascript-bundler-plugins#794))
- perf: use premove for build clean ([#792](getsentry/sentry-javascript-bundler-plugins#792))
- fix(core): Forward headers option to sentry-cli ([#797](getsentry/sentry-javascript-bundler-plugins#797))

Work in this release contributed by [@liAmirali](https://github.com/liAmirali). Thank you for your contribution!
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.

2 participants