You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sentry sourcemap upload has no way to rewrite the sources paths inside a source map. v2's --strip-prefix did that (with rewriting on). In v4, --strip-prefix and --strip-common-prefix only rename the uploaded files. The only change made to sources is turning backslashes into forward slashes (mutateSourcemap in packages/cli/src/lib/sourcemap/debug-id.ts).
Maps whose sources are relative to the build output keep paths like ../src/index.ts, so stack frames can show them instead of src/index.ts. Wrangler's maps are one example.
The source maps wizard's Wrangler flow ran v2 sentry-cli sourcemaps upload --strip-prefix 'dist/..'. Its v4 port in feat(cli): add source maps and Cloudflare to sentry wizard #2529 uploads with --no-rewrite and drops the prefix, because no v4 flag does the same thing.
Activity
linear-code commentedon Nov 27, 2026
MCP-1297