-
-
Notifications
You must be signed in to change notification settings - Fork 242
Closed
Labels
Description
CLI Version
3.3.3
Operating System and Architecture
- macOS (arm64)
- macOS (x86_64)
- Linux (i686)
- Linux (x86_64)
- Linux (armv7)
- Linux (aarch64)
- Windows (i686)
- Windows (x86_64)
Operating System Version
macOS 15.3, Debian 12 (node:24 Docker image)
Link to reproduction repository
CLI Command
sentry-cli sourcemaps inject ./my-dist
Exact Reproduction Steps
Reproduction Steps
- Bundle a JS worker that includes terser or babel as dependencies (these tools generate sourceMappingURL comments as part of their output)
- After minification, template literals in these tools produce lines like:
var output=code+`
//# sourceMappingURL=data:application/json;base64,`+btoa(map)- The backtick preserves the newline, so
//# sourceMappingURL=data:application/json;base64,lands at column 0 discover_sourcemaps_locationmatches it as a real directive, but the "base64" content is JS code, so decoding fails- Run
sentry-cli sourcemaps inject ./my-dist
Expected Results
The injection skips files where the embedded sourcemap data isn't valid base64 and processes the rest normally.
Actual Results
> Searching ./my-dist
> Found 236 files
> Analyzing 236 sources
> Injecting debug ids
error: Invalid embedded sourcemap in source file ./my-dist/assets/bundler.worker-CqhnNlN9.js
Exits with code 1, no other files are processed.
Logs
N/A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
No status