Inspect bundle contents, on module level, from Metro.
Warning
This project is highly experimental and will likely not work for your project.
Install the expo-atlas
package as (development) dependency to your project:
$ npx expo install expo-atlas
Configure your Metro config to emit an Atlas file containing information about your bundles.
const { getDefaultConfig } = require('expo/metro-config');
const { withExpoAtlas } = require('expo-atlas/metro');
const config = getDefaultConfig(__dirname);
// Add the `withExpoAtlas` from `expo-atlas/metro` as last change
module.exports = withExpoAtlas(config);
After that, you can generate a new bundle and inspect these through the CLI
# Export bundles for all platforms,
# or use `--platform android --platform ios` to enable specific exports
$ npx expo export --platform all
# Start inspecting
$ npx expo-atlas
You can also open a previously created atlas.jsonl
file:
$ npx expo-atlas ./path/to/atlas.jsonl
with ❤️ byCedric