Skip to content

expo/atlas

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024
Mar 13, 2024
Mar 12, 2024
Mar 17, 2024
Mar 12, 2024
Mar 15, 2024
Mar 15, 2024
Mar 17, 2024
Mar 12, 2024

Repository files navigation

Expo Atlas

Inspect the bundle stats from Metro.

Warning

This project is highly experimental and will likely not work for your project.

πŸš€ How to use it

Install the expo-atlas package as (development) dependency to your project:

$ npx expo install expo-atlas

Configure your Metro config to emit a .expo/stats.json 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

πŸ§‘β€πŸ€β€πŸ§‘ Sharing stats files

You can also open a previously created stats.json file:

$ npx expo-atlas ./path/to/stats.json

with β€οΈ  byCedric