Make bundle building function async

Reviewed By: jeanlauliac

Differential Revision: D4993758

fbshipit-source-id: b466e0d8d494914357f38eac1a0ef3c2ec7d4edd
This commit is contained in:
David Aurelio 2017-05-03 13:02:05 -07:00 committed by Facebook Github Bot
parent 78600e5f76
commit 3ed489a35a
2 changed files with 3 additions and 3 deletions

View File

@ -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 = {|

View File

@ -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;