Skip to content

Commit

Permalink
Make bundle building function async
Browse files Browse the repository at this point in the history
Reviewed By: jeanlauliac

Differential Revision: D4993758

fbshipit-source-id: b466e0d8d494914357f38eac1a0ef3c2ec7d4edd
  • Loading branch information
davidaurelio authored and facebook-github-bot committed May 3, 2017
1 parent 7eb005b commit 382e633
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packager/src/ModuleGraph/ModuleGraph.js
Expand Up @@ -27,7 +27,7 @@ import type {
type BuildFn = (
entryPoints: Iterable<string>,
options: BuildOptions,
callback: Callback<{modules: Iterable<Module>, entryModules: Iterable<Module>}>,
callback: Callback<GraphResult>,
) => void;

type BuildOptions = {|
Expand Down
4 changes: 2 additions & 2 deletions packager/src/ModuleGraph/types.flow.js
Expand Up @@ -46,8 +46,8 @@ type GraphOptions = {|
|};

export type GraphResult = {|
entryModules: Array<Module>,
modules: Array<Module>,
entryModules: Iterable<Module>,
modules: Iterable<Module>,
|};

export type IdForPathFn = {path: string} => number;
Expand Down

0 comments on commit 382e633

Please sign in to comment.