diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 8b974088a5b..431f0b3b500 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,