Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions src/platforms/react-native/manual-setup/ram-bundles.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,24 @@ If you use the official `react-native-sentry` integration of version `0.43.1` or

Starting from version `1.43.0`, `sentry-cli` provides two additional parameters to the `upload-sourcemaps` command to simplify bundle uploads: `--bundle` and `--bundle-sourcemap`. Using those parameters, you can pass the path to the application bundle, along with its source map, and the bundle will be automatically extracted before the upload, if necessary:

```shell
sentry-cli releases files RELEASE_ID upload-sourcemaps --bundle main.bundle --bundle-sourcemap main.bundle.map
```bash {tabTitle:Android}
node_modules/@sentry/cli/bin/sentry-cli releases \
files <release> \
upload-sourcemaps \
--dist <dist> \
--strip-prefix $projectRoot/fullFolder \
--bundle index.android.bundle \
--bundle-sourcemap index.android.bundle.map
```

```bash {tabTitle:iOS}
node_modules/@sentry/cli/bin/sentry-cli releases \
files <release> \
upload-sourcemaps \
--dist <dist> \
--strip-prefix $projectRoot/fullFolder \
--bundle main.jsbundle \
--bundle-sourcemap main.jsbundle.map
```

All bundle types (plain, Indexed RAM bundles, and File RAM bundles) are supported.
Expand Down