mirror of
https://github.com/status-im/metro.git
synced 2025-01-13 12:35:57 +00:00
Expose type parameter on the buildGraph command
Reviewed By: davidaurelio Differential Revision: D7654256 fbshipit-source-id: c3d97a1564ed06561b071ca412b14655f46cbc4f
This commit is contained in:
parent
47793c25a5
commit
310c096671
@ -281,6 +281,7 @@ type BuildGraphOptions = {|
|
||||
dev?: boolean,
|
||||
onProgress?: (transformedFileCount: number, totalFileCount: number) => void,
|
||||
platform?: string,
|
||||
type: 'module' | 'script',
|
||||
|};
|
||||
|
||||
type RunBuildOptions = {|
|
||||
@ -380,6 +381,7 @@ exports.buildGraph = async function({
|
||||
entries,
|
||||
onProgress,
|
||||
platform = `web`,
|
||||
type = 'module',
|
||||
...rest
|
||||
}: BuildGraphOptions): Promise<Graph> {
|
||||
const metroServer = await runMetro({
|
||||
@ -393,6 +395,7 @@ exports.buildGraph = async function({
|
||||
dev,
|
||||
onProgress,
|
||||
platform,
|
||||
type,
|
||||
});
|
||||
} finally {
|
||||
await metroServer.end();
|
||||
|
Loading…
x
Reference in New Issue
Block a user