Skip to content

Conversation

@timfish
Copy link
Collaborator

@timfish timfish commented Oct 6, 2025

@timfish timfish requested a review from Lms24 October 7, 2025 10:37
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Thanks! Sounds reasonable to me.

await sentryBuildPluginManager.uploadSourcemaps(buildArtifactPaths);
// Webpack and perhaps other bundlers allow you to append query strings to
// filenames for cache busting purposes. We should strip these before upload.
const cleanedPaths = buildArtifactPaths.map((p) => p.split("?")[0] || p);
Copy link
Member

Choose a reason for hiding this comment

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

l: we already have a stripQueryAndHashFromPath helper we can reuse here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah missed that!

@Lms24 Lms24 merged commit 298fb12 into getsentry:main Oct 9, 2025
23 checks passed
@timfish timfish deleted the timfish/fix/webpack-query-string branch October 9, 2025 15:32
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Oct 11, 2025
| datasource | package | from | to | | ---------- | ------------------- | ----- | ----- | | npm | @sentry/vite-plugin | 4.3.0 | 4.4.0 | ## [v4.4.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#440) - feat(core): Explicitly allow `undefined` as value for `authToken` option ([#805](getsentry/sentry-javascript-bundler-plugins#805)) - fix(core): Strip query strings from asset paths ([#806](getsentry/sentry-javascript-bundler-plugins#806)) Work in this release was contributed by [@aiktb](https://github.com/aiktb). Thank you for your contribution!
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Oct 11, 2025
| datasource | package | from | to | | ---------- | ------------------- | ----- | ----- | | npm | @sentry/vite-plugin | 4.3.0 | 4.4.0 | ## [v4.4.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#440) - feat(core): Explicitly allow `undefined` as value for `authToken` option ([#805](getsentry/sentry-javascript-bundler-plugins#805)) - fix(core): Strip query strings from asset paths ([#806](getsentry/sentry-javascript-bundler-plugins#806)) Work in this release was contributed by [@aiktb](https://github.com/aiktb). 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

2 participants