Toolvito

Calculates on this device. File exports run online.

Metro Source Map Viewer

Paste or open the source map of a React Native bundle and the stack trace of an error (the red box, adb logcat or a crash report). Each frame of the bundle gets its original file and line, and the name of its function from the function maps Metro writes into the map.

Enter your values

Paste or open the source map of a React Native bundle. Besides the sources and mappings, Metro's own fields are read: the function maps that give stack frames their names, the module paths and the Hermes offsets.

Your values

From npx react-native bundle --sourcemap-output, or the .map Expo or Xcode writes. Up to 30 MB.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose the button below them.

Large maps and stack-trace files (Metro function names too)

Large maps and stack-trace files

Choose the .map files of your bundles (any size), stack traces as .txt files, and the bundles themselves to check that each map fits; or a ZIP of them. Frames get their original positions and the names of Metro's function maps.

Or drop files here. MAP, JS, MJS, CJS, BUNDLE, JSBUNDLE, TXT, LOG or ZIP, up to 200 files, 300 MB each at most.

    More options

    The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    How to decode a React Native stack trace

    1. Make the map with the bundle: npx react-native bundle … --sourcemap-output index.android.bundle.map (Expo and Xcode builds write one too).
    2. Choose Turn a stack trace back, open the map and paste the stack trace.
    3. Press Look up the frames: the stack comes back with your files, lines and function names.

    What Metro adds to a map

    • x_facebook_sources: a function map for each source. It says where each function starts and where the enclosing one goes on, so that frames get real names even when the code is minified.
    • x_google_ignoreList: library files (node_modules) that debuggers hide.
    • x_metro_module_paths and x_hermes_function_offsets: listed when present.

    Limits you should know

    • Stack traces of a Hermes bytecode bundle (address at …) are looked up as columns; frames that need Hermes function ids are not resolved.
    • Function maps are read as Metro writes them; a map without them leaves the frames their minified names.
    • Maps of more than 30 MB are read in the box below.

    Privacy

    Maps and stack traces are read in your browser. Only what you choose in the box below is sent to the Toolvito server, to be read there. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    Related tools