mirror of https://github.com/status-im/metro.git
Expose minify param to the buildGraph method
Summary: Now that the minifier is integrated inside the transformer, we can expose the param in the `buildGraph` method Reviewed By: davidaurelio Differential Revision: D7707542 fbshipit-source-id: 0125172b2ac90c7ceb477d5c55e9aea3c3867e02
This commit is contained in:
parent
a6b61554ec
commit
3adbf01ea2
|
@ -270,6 +270,7 @@ type BuildGraphOptions = {|
|
|||
...PublicMetroOptions,
|
||||
entries: $ReadOnlyArray<string>,
|
||||
dev?: boolean,
|
||||
minify?: boolean,
|
||||
onProgress?: (transformedFileCount: number, totalFileCount: number) => void,
|
||||
platform?: string,
|
||||
type: 'module' | 'script',
|
||||
|
@ -370,6 +371,7 @@ exports.buildGraph = async function({
|
|||
config,
|
||||
dev = false,
|
||||
entries,
|
||||
minify = false,
|
||||
onProgress,
|
||||
platform = `web`,
|
||||
type = 'module',
|
||||
|
@ -384,6 +386,7 @@ exports.buildGraph = async function({
|
|||
return await metroServer.buildGraph(entries, {
|
||||
...MetroServer.DEFAULT_GRAPH_OPTIONS,
|
||||
dev,
|
||||
minify,
|
||||
onProgress,
|
||||
platform,
|
||||
type,
|
||||
|
|
Loading…
Reference in New Issue