CLI Version
2.43.0
Operating System and Architecture
Operating System Version
Ubuntu 22.04
Link to reproduction repository
https://github.com/bugsink/mksourcemaps/tree/
CLI Command
sentry-cli sourcemaps inject .
Exact Reproduction Steps
Here's the file without any injection:
https://github.com/bugsink/mksourcemaps/blob/67a9159676d3f0b46eb8a3585f2017fd59392545/captureException.js
As per the (sentry uglifyjs) docs, do the following:
uglifyjs captureException.js -o captureException.min.js --source-map url=captureException.min.js.map,includeSources
sentry-cli sourcemaps inject .
The resulting sourcemap is invalid.
If you first add some newlines at the top of the file, everything works as expected.
Expected Results
.
Actual Results
.
Logs
.
CLI Version
2.43.0
Operating System and Architecture
Operating System Version
Ubuntu 22.04
Link to reproduction repository
https://github.com/bugsink/mksourcemaps/tree/
CLI Command
sentry-cli sourcemaps inject .
Exact Reproduction Steps
Here's the file without any injection:
https://github.com/bugsink/mksourcemaps/blob/67a9159676d3f0b46eb8a3585f2017fd59392545/captureException.js
As per the (sentry uglifyjs) docs, do the following:
The resulting sourcemap is invalid.
If you first add some newlines at the top of the file, everything works as expected.
Expected Results
.
Actual Results
.
Logs
.