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:
parent
77c11e831b
commit
c65d904264
|
@ -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 {
|
||||
|
|
|
@ -27,6 +27,7 @@ export type ResolutionResponse<TModule> = {
|
|||
getResolvedDependencyPairs(
|
||||
module: TModule,
|
||||
): $ReadOnlyArray<[string, TModule]>,
|
||||
options: Object,
|
||||
};
|
||||
|
||||
function resolveModuleRequires<TModule>(
|
||||
|
|
Loading…
Reference in New Issue