# Bundle Analysis without CLI — Bundle Drop Docs

> Analyze React Native and Expo bundles without the Bundle Drop CLI or SDK. Generate source maps, compare builds manually, explore treemaps, and export reports.

Canonical: https://bundledrop.app/docs/react-native-bundle-analysis-without-cli

## Analyze a build in your browser

[Bundle Drop Sight](/sight) shows which packages and source files contribute to your production JavaScript bundle. Analysis runs locally in your browser; your bundle and source map are not uploaded. You do not need the Bundle Drop SDK, CLI, or an account.

For automatic builds, Git comparisons, emitted assets, and OTA archive measurements, use [Bundle Analysis with CLI](/docs/react-native-bundle-analysis).

## 1. Generate a bundle and matching source map

Use your app's installed tooling. Generate both files together for one platform with production settings. Sight accepts UTF-8 JavaScript files ending in `.jsbundle`, `.bundle`, or `.js`, plus a matching source-map version 3 JSON file ending in `.map`. Hermes bytecode is not supported.

### Bare React Native

Run the command for your platform. Replace `index.js` with the app's actual entry file if it differs.

**iOS**

```bash
npx react-native bundle --platform ios --dev false --minify true --entry-file index.js --bundle-output main.ios.jsbundle --sourcemap-output main.ios.jsbundle.map
```

**Android**

```bash
npx react-native bundle --platform android --dev false --minify true --entry-file index.js --bundle-output main.android.bundle --sourcemap-output main.android.bundle.map
```

### Expo

Export one native platform with source maps and bytecode disabled so the analyzer receives JavaScript:

**iOS**

```bash
npx expo export --platform ios --source-maps --no-bytecode
```

**Android**

```bash
npx expo export --platform android --source-maps --no-bytecode
```

Choose the generated JavaScript file and matching `.map` from the export output; paths vary by Expo SDK.

## 2. Load your files in Sight

Open [Sight](/sight), select **Analyze**, and choose or drop each file into its corresponding bundle or source-map field. Click **Analyze locally**. You can also try the demo first.

To compare builds, select **Compare** and provide a bundle/map pair for **Baseline build** and another for **Current build**. Use the same platform and equivalent production settings, then click **Compare locally**.

Manual loading analyzes JavaScript only. Use [the CLI workflow](/docs/react-native-bundle-analysis) when you also need Git context, bundled asset inventories, or Bundle Drop OTA measurements.

## 3. Find what contributes the most bytes

Start in **Packages** to find large dependencies, then switch to **Files** to inspect individual sources. Search by package name or path, filter the source categories, and navigate the treemap. **Fullscreen** gives you more room.

In Compare mode, inspect before, after, and signed changes. Negative changes mean fewer bytes in the current build.

The JavaScript total measures the generated file's UTF-8 bytes, excluding the source-map file. It does not measure startup time, memory usage, compressed download size, or the final native app size.

Follow this read-only walkthrough from matching files to a same-platform comparison. All sample metrics are illustrative.

## 4. Export a report

Open **Export** to save PDF, standalone HTML, or JSON, or copy a Markdown summary. Single-build analysis also supports PNG and SVG treemap images. Reports are generated locally; PDF opens the browser's print dialog.

Choose JSON for the complete normalized analysis. Visual and human-readable summaries can limit the number of rows they show.

## Troubleshooting

**The files do not match or cannot be read.** Regenerate both files together for the same platform. Do not pair a new bundle with an older map. For Expo, keep `--no-bytecode` so the output is JavaScript.

**Analysis stops unexpectedly.** Large inputs depend on available browser memory. Retry in a desktop browser with fewer tabs open, or try a smaller production bundle. You can cancel an in-progress analysis.

**Assets or OTA size are missing.** Manual loading provides JavaScript analysis only. Use the [CLI workflow](/docs/react-native-bundle-analysis) for asset inventories and [Bundle Drop OTA measurements](/docs/react-native-bundle-analysis#bundle-drop-ota-size).

## Explore further

- [Open Sight and try the interactive demo](/sight)
- [Analyze with the Bundle Drop CLI](/docs/react-native-bundle-analysis)
- [How React Native bundle analysis works](/resources/react-native-bundle-analysis)
