react-native/local-cli/bundle/output/unbundle
Martín Bigio 8edc35004c Move preloaded modules to startup code section
Summary:We found that moving the preloaded modules to the startup section of the RAM Bundle improves TTI quite a bit by saving lots of through the bridge calls and injecting multiple modules at once on JSC. However, doing this on a non hacky way required a lot of work. The main changes this diff does are:
  - Add to `BundleBase` additional bundling options. This options are fetched based on the entry file we're building by invoking a module that exports a function (`getBundleOptionsModulePath`).
  - Implement `BundleOptions` module to include the `numPreloadedModules` attribute as a bundle additional option. This value is computed by getting the dependencies the entry file has and looking for the first module that exports a module we don't want to preload. The `numPreloadedModules` attribute is then used to decide where to splice the array of modules.
- Additional kung fu to make sure sourcemaps work for both preloaded and non preloaded modules.

Reviewed By: davidaurelio

Differential Revision: D3046534

fb-gh-sync-id: 80b676222ca3bb8b9eecc912a7963be94d3dee1a
shipit-source-id: 80b676222ca3bb8b9eecc912a7963be94d3dee1a
2016-03-23 09:28:31 -07:00
..
as-assets.js Move preloaded modules to startup code section 2016-03-23 09:28:31 -07:00
as-indexed-file.js Move preloaded modules to startup code section 2016-03-23 09:28:31 -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 Move preloaded modules to startup code section 2016-03-23 09:28:31 -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