packager-worker-for-buck: include all entries point for getting extra configuration

Reviewed By: davidaurelio

Differential Revision: D5764794

fbshipit-source-id: a9bddd05a66c1d5a45f5dd4d04517dbe86ea5b76
This commit is contained in:
Jean Lauliac 2017-09-05 10:50:01 -07:00 committed by Facebook Github Bot
parent 0265758e5e
commit a94654255b
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ export type GetTransformOptionsOpts = {|
|};
export type GetTransformOptions = (
mainModuleName: string,
entryPoints: $ReadOnlyArray<string>,
options: GetTransformOptionsOpts,
getDependenciesOf: (string) => Promise<Array<string>>,
) => Promise<ExtraTransformOptions>;
@ -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,
)