From 383906e68d9f262f844066db3bd5b939a63cb1f0 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Mon, 20 Jun 2022 13:27:45 +0200 Subject: [PATCH] Specify bundle names for RAM bundles react native --- .../react-native/manual-setup/ram-bundles.mdx | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/platforms/react-native/manual-setup/ram-bundles.mdx b/src/platforms/react-native/manual-setup/ram-bundles.mdx index 1de5590398637e..c96c71f2f2aac4 100644 --- a/src/platforms/react-native/manual-setup/ram-bundles.mdx +++ b/src/platforms/react-native/manual-setup/ram-bundles.mdx @@ -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 \ + upload-sourcemaps \ + --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 \ + upload-sourcemaps \ + --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.