react-native/local-cli/bundle/output
David Aurelio 5b5a89aefa Add sourcemap support for asset-based random access bundles
Summary:This adds support for source maps that can be used for “random access modules” / “unbundles”

- source maps contain an extra custom field: `x_facebook_offsets`
- this field maps module IDs to line offsets
- the source map is built as if all files were concatenated

Decoding/symbolication works as follows:
- when decoding a stack trace, and a stack frame comes from a filename that contains only numbers and ends with `.js`, look up the additionally needed line offset in the offset map and add it to the original line of the stack frame.
- consume the source map as usual

Reviewed By: martinbigio

Differential Revision: D3072426

fb-gh-sync-id: 827e6dc13b1959f02903baafa7f9e4fc2e0d4bb9
shipit-source-id: 827e6dc13b1959f02903baafa7f9e4fc2e0d4bb9
2016-03-21 12:32:22 -07:00
..
unbundle Add sourcemap support for asset-based random access bundles 2016-03-21 12:32:22 -07:00
bundle.js transform before extracting dependencies 2016-03-08 09:51:26 -08:00
prepack.js Move bundle output formats to their own files 2015-11-30 09:31:27 -08:00
writeFile.js Move bundle output formats to their own files 2015-11-30 09:31:27 -08:00