expo-atlas
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Expo Atlas

Inspect bundle contents, on module level, 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 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

🧑‍🤝‍🧑 Sharing the Atlas file

You can also open a previously created atlas.jsonl file:

$ npx expo-atlas ./path/to/atlas.jsonl

with ❤️  byCedric

Readme

Keywords

Package Sidebar

Install

npm i expo-atlas

Weekly Downloads

2,174

Version

0.2.0

License

MIT

Unpacked Size

9.05 MB

Total Files

121

Last publish

Collaborators

  • bycedric