Improve HMR performance by allowing to specify bundlingOptions to getShallowDependencies() method

Reviewed By: jeanlauliac

Differential Revision: D5745205

fbshipit-source-id: a69ac40bb676a809e3786681179e2b4bac392ce6
This commit is contained in:
Rafael Oleza 2017-09-01 08:44:50 -07:00 committed by Facebook Github Bot
parent 77c11e831b
commit c65d904264
2 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ type DependencyOptions = {|
+platform: ?string,
+recursive: boolean,
+rootEntryFile: string,
+bundlingOptions?: Object,
|};
/**
@ -144,6 +145,7 @@ function attachHMRServer<TModule: Moduleish>(
minify: false,
platform: platform,
recursive: true,
bundlingOptions: response.options,
});
return {

View File

@ -27,6 +27,7 @@ export type ResolutionResponse<TModule> = {
getResolvedDependencyPairs(
module: TModule,
): $ReadOnlyArray<[string, TModule]>,
options: Object,
};
function resolveModuleRequires<TModule>(