Skip to content

Commit cbc646e

Browse files
docs(js): Add decompress flag to sourcemaps troubleshooting (#5287)
* docs(js): Add decompress flag to sourcemaps troubleshooting * Apply suggestions from code review Co-authored-by: Isabel <[email protected]> Co-authored-by: Isabel <[email protected]>
1 parent f1de76c commit cbc646e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/platforms/javascript/common/sourcemaps/troubleshooting_js.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ Often users hit this limit because they are transmitting source files at an inte
203203

204204
The Sentry API currently only works with source maps and source files that are uploaded as plain text (UTF-8 encoded). If the files are uploaded in a compressed format (for example, gzip), they will be not be interpreted correctly.
205205

206-
This sometimes occurs with build scripts and plugins that produce pre-compressed minified files. For example, Webpack’s [compression plugin](https://github.com/webpack/compression-webpack-plugin). You’ll need to disable such plugins and perform the compression _after_ the generated source maps/source files have been uploaded to Sentry.
206+
If you are using `sentry-cli` to upload your artifacts, starting with version `2.4.0` you can add the `--decompress` flag to your `sourcemaps upload` or `files upload` commands.
207+
208+
Sometimes build scripts and plugins produce pre-compressed minified files (for example, Webpack’s [compression plugin](https://github.com/webpack/compression-webpack-plugin)). In these cases, you’ll need to disable such plugins and perform the compression **after** the generated source maps/source files have been uploaded to Sentry.
207209

208210
## Verify workers are sharing the same volume as web (if running self-hosted Sentry via Docker)
209211

0 commit comments

Comments
 (0)