Skip to content

Commit d7313bd

Browse files
authored
Specify bundle names for RAM bundles react native (#5178)
1 parent 34cc268 commit d7313bd

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/platforms/react-native/manual-setup/ram-bundles.mdx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,24 @@ If you use the official `react-native-sentry` integration of version `0.43.1` or
2626

2727
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:
2828

29-
```shell
30-
sentry-cli releases files RELEASE_ID upload-sourcemaps --bundle main.bundle --bundle-sourcemap main.bundle.map
29+
```bash {tabTitle:Android}
30+
node_modules/@sentry/cli/bin/sentry-cli releases \
31+
files <release> \
32+
upload-sourcemaps \
33+
--dist <dist> \
34+
--strip-prefix $projectRoot/fullFolder \
35+
--bundle index.android.bundle \
36+
--bundle-sourcemap index.android.bundle.map
37+
```
38+
39+
```bash {tabTitle:iOS}
40+
node_modules/@sentry/cli/bin/sentry-cli releases \
41+
files <release> \
42+
upload-sourcemaps \
43+
--dist <dist> \
44+
--strip-prefix $projectRoot/fullFolder \
45+
--bundle main.jsbundle \
46+
--bundle-sourcemap main.jsbundle.map
3147
```
3248

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

0 commit comments

Comments
 (0)