Skip to content

Commit

Permalink
Improve HMR performance by allowing to specify bundlingOptions to get…
Browse files Browse the repository at this point in the history
…ShallowDependencies() method

Reviewed By: jeanlauliac

Differential Revision: D5745205

fbshipit-source-id: a69ac40bb676a809e3786681179e2b4bac392ce6
  • Loading branch information
rafeca authored and facebook-github-bot committed Sep 1, 2017
1 parent 77c11e8 commit c65d904
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions local-cli/server/util/attachHMRServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ type DependencyOptions = {|
+platform: ?string,
+recursive: boolean,
+rootEntryFile: string,
+bundlingOptions?: Object,
|};

/**
Expand Down Expand Up @@ -144,6 +145,7 @@ function attachHMRServer<TModule: Moduleish>(
minify: false,
platform: platform,
recursive: true,
bundlingOptions: response.options,
});

return {
Expand Down
1 change: 1 addition & 0 deletions local-cli/server/util/getInverseDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export type ResolutionResponse<TModule> = {
getResolvedDependencyPairs(
module: TModule,
): $ReadOnlyArray<[string, TModule]>,
options: Object,
};

function resolveModuleRequires<TModule>(
Expand Down

0 comments on commit c65d904

Please sign in to comment.