react-native/local-cli/bundle
Jean Lauliac 4203c9c837 packager: fix buildBundle() options
Summary: The problem with `bundleOpts` is that it discards Flow typing, so it prevents reinforcing the integration of `Bundler` into `Server`. This changeset removes the `bundleOpts` to solve that issues. Instead, it makes the options explicit so that there is less uncertaintly. I love making options explicit, because they force callsites to take a consicious decision about what is really needed, making them more robust. They also expose oddities that probably needs refatoring, for example having a `resolutionRequest` in the bundle options does not seem correct, it should be an implementation details. Likewise, `onProgress` should probably be exposed differently, as it does not affect the content of the bundle itself.

Reviewed By: davidaurelio

Differential Revision: D4697729

fbshipit-source-id: d543870ba024e7588c10b101fa51429c77cc5ddc
2017-03-14 11:04:51 -07:00
..
__mocks__ Move `private-cli` commands to `local-cli` 2015-10-26 15:36:04 -07:00
__tests__ Don't include assets that are not used on the platform 2017-02-09 11:15:25 -08:00
output packager: fix buildBundle() options 2017-03-14 11:04:51 -07:00
assetPathUtils.js Load assets from same folder as JSbundle (Android) 2016-01-06 08:46:35 -08:00
buildBundle.js Introduce HasteImpl 2017-02-27 14:04:58 -08:00
bundle.js Fix lint in local-cli 2016-11-14 11:13:42 -08:00
bundleCommandLineArgs.js Add --sourcemap-sources-root to RN packager 2017-01-04 20:58:33 -08:00
filterPlatformAssetScales.js Don't include assets that are not used on the platform 2017-02-09 11:15:25 -08:00
getAssetDestPathAndroid.js Fix lint in local-cli 2016-11-14 11:13:42 -08:00
getAssetDestPathIOS.js Move `private-cli` commands to `local-cli` 2015-10-26 15:36:04 -07:00
saveAssets.js Don't include assets that are not used on the platform 2017-02-09 11:15:25 -08:00
types.flow.js Remove `react-packager` indirection. 2017-02-02 05:44:15 -08:00
unbundle.js Add `--indexed-unbundle` flag to force iOS ra-bundle format 2016-11-17 02:43:26 -08:00