measure_bundle
Analyze the makeup of a React Native/Expo release JS bundle from its source map, showing per-package bytes and duplicates. Compare with an older map to see size changes.
Instructions
What the release JavaScript bundle of a React Native or Expo app is made of, measured from the source map a release build already wrote (Hermes bytecode maps included): bytes and share for the app code and each package, packages bundled more than once, and the largest JSON. With base (an older map), what was added, removed or changed size since that build. Nothing is built or run; returns found:false with how to produce a map if there is none.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map | No | Source map of the release bundle, relative to path (for example android/app/build/generated/sourcemaps/react/release/index.android.bundle.map). Optional: without it the usual React Native and Expo output folders are searched. | |
| base | No | An older release source map, relative to path, to compare against: the result then lists packages added, removed or changed in size. Optional. | |
| path | Yes | Folder of the React Native or Expo app (the one with package.json), absolute or relative to the workspace. Must be inside the folders this server may read. |