Update shared/output modules to accept the output from the Delta Bundler

Reviewed By: davidaurelio

Differential Revision: D6186386

fbshipit-source-id: 6160f5a02891dbfb56c6350239703ace91e53690
This commit is contained in:
Rafael Oleza 2017-10-31 10:17:38 -07:00 committed by Facebook Github Bot
parent ec50aa6d33
commit 01b941927c
1 changed files with 4 additions and 2 deletions

View File

@ -151,8 +151,10 @@ function buildBundle(
// Save the assets of the bundle
const assets = bundlePromise
.then(bundle => bundle.getAssets())
.then(outputAssets => saveAssets(
// TODO: Use the packager.getAssets() method to get the bundle assets.
// $FlowFixMe: This code is going away.
.then(bundle => bundle.getAssets && bundle.getAssets())
.then(outputAssets => outputAssets && saveAssets(
outputAssets,
args.platform,
args.assetsDest,