From 01b941927cd817ce282cf98bec3fab6c8de09e20 Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Tue, 31 Oct 2017 10:17:38 -0700 Subject: [PATCH] Update shared/output modules to accept the output from the Delta Bundler Reviewed By: davidaurelio Differential Revision: D6186386 fbshipit-source-id: 6160f5a02891dbfb56c6350239703ace91e53690 --- local-cli/bundle/buildBundle.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 8b974088a..431f0b3b5 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -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,