File tree Expand file tree Collapse file tree
packages/bundler-plugin-core/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { promisify } from "util";
66import { SentryBuildPluginManager } from "./build-plugin-manager" ;
77import { Logger } from "./logger" ;
88import { ResolveSourceMapHook , RewriteSourcesHook } from "./types" ;
9+ import { stripQueryAndHashFromPath } from "./utils" ;
910
1011interface DebugIdUploadPluginOptions {
1112 sentryBuildPluginManager : SentryBuildPluginManager ;
@@ -17,7 +18,7 @@ export function createDebugIdUploadFunction({
1718 return async ( buildArtifactPaths : string [ ] ) => {
1819 // Webpack and perhaps other bundlers allow you to append query strings to
1920 // filenames for cache busting purposes. We should strip these before upload.
20- const cleanedPaths = buildArtifactPaths . map ( ( p ) => p . split ( "?" ) [ 0 ] || p ) ;
21+ const cleanedPaths = buildArtifactPaths . map ( stripQueryAndHashFromPath ) ;
2122 await sentryBuildPluginManager . uploadSourcemaps ( cleanedPaths ) ;
2223 } ;
2324}
You can’t perform that action at this time.
0 commit comments