Uses `source-map-explorer` to visualize the Metro bundler output
This version switches to using the awesome source-map-explorer
package which can visualize the output from the Metro bundler directly. This means that the Haul bundler is no longer used and it should therefore result in less build errors and more accurate results. The source-map-explorer package also provides an interactive User interface which allows you to navigate deeper into the source code.
Additionally, you can now run this version directly using npx without having to install any dependencies.
To use, just run npx react-native-bundle-visualizer
Command line arguments
All command-line arguments are optional. By default a production build will be created for the ios
platform.
Option | Description | Example |
---|---|---|
platform |
Platform to build (default is ios) | --platform android |
dev |
Dev or production build (default is false) | --dev false |
entry-file |
Entry-file (when omitted tries to auto-resolve it) | --entry-file ./index.android.js |
bundle-output |
Output bundle-file (default is tmp) | --bundle-output ./myapp.bundle |
verbose |
Dumps additional output to the console (default is false) | --verbose |
reset-cache |
Removes cached react-native files (default is false) | --reset-cache |