From a94654255b921a0d134c1e359b018f980316a808 Mon Sep 17 00:00:00 2001 From: Jean Lauliac Date: Tue, 5 Sep 2017 10:50:01 -0700 Subject: [PATCH] packager-worker-for-buck: include all entries point for getting extra configuration Reviewed By: davidaurelio Differential Revision: D5764794 fbshipit-source-id: a9bddd05a66c1d5a45f5dd4d04517dbe86ea5b76 --- packages/metro-bundler/src/Bundler/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/metro-bundler/src/Bundler/index.js b/packages/metro-bundler/src/Bundler/index.js index 741950c5..449c74ac 100644 --- a/packages/metro-bundler/src/Bundler/index.js +++ b/packages/metro-bundler/src/Bundler/index.js @@ -67,7 +67,7 @@ export type GetTransformOptionsOpts = {| |}; export type GetTransformOptions = ( - mainModuleName: string, + entryPoints: $ReadOnlyArray, options: GetTransformOptionsOpts, getDependenciesOf: (string) => Promise>, ) => Promise; @@ -896,7 +896,7 @@ class Bundler { const {dev, hot, platform} = options; const extraOptions: ExtraTransformOptions = this._getTransformOptions ? await this._getTransformOptions( - mainModuleName, + [mainModuleName], {dev, hot, platform}, getDependencies, )