react-native/local-cli/bundle/output/unbundle
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
..
as-assets.js Add sourcemap support for asset-based random access bundles 2016-03-21 12:32:22 -07:00
as-indexed-file.js seek & read RAM Bundle 2016-03-17 10:35:28 -07:00
build-unbundle-sourcemap-with-metadata.js Add sourcemap support for asset-based random access bundles 2016-03-21 12:32:22 -07:00
buildUnbundleSourcemap.js Sourcemaps support for RAM 2016-03-13 11:14:32 -07:00
index.js fork unbundle output format per platform 2015-12-16 12:01:17 -08:00
magic-number.js Add magic indicator file to FS unbundles 2015-12-18 06:37:16 -08:00
util.js Add sourcemap support for asset-based random access bundles 2016-03-21 12:32:22 -07:00
write-sourcemap.js Sourcemaps support for RAM 2016-03-13 11:14:32 -07:00