mirror of https://github.com/status-im/metro.git
Make `postMinifyProcess` non-optional
Reviewed By: cpojer Differential Revision: D5052315 fbshipit-source-id: 4c3573fc6e97b4f561f371179ea2dd6f89fac05a
This commit is contained in:
parent
a948fdb31b
commit
1c2ef1833f
|
@ -127,7 +127,7 @@ type Options = {|
|
||||||
+platforms: Array<string>,
|
+platforms: Array<string>,
|
||||||
+polyfillModuleNames: Array<string>,
|
+polyfillModuleNames: Array<string>,
|
||||||
+postProcessModules?: PostProcessModules,
|
+postProcessModules?: PostProcessModules,
|
||||||
+postMinifyProcess?: PostMinifyProcess,
|
+postMinifyProcess: PostMinifyProcess,
|
||||||
+projectRoots: Array<string>,
|
+projectRoots: Array<string>,
|
||||||
+providesModuleNodeModules?: Array<string>,
|
+providesModuleNodeModules?: Array<string>,
|
||||||
+reporter: Reporter,
|
+reporter: Reporter,
|
||||||
|
|
|
@ -39,7 +39,7 @@ type Options = {|
|
||||||
+hasteImpl?: HasteImpl,
|
+hasteImpl?: HasteImpl,
|
||||||
+maxWorkerCount: number,
|
+maxWorkerCount: number,
|
||||||
+minifyCode: MinifyCode,
|
+minifyCode: MinifyCode,
|
||||||
+postMinifyProcess?: PostMinifyProcess,
|
+postMinifyProcess: PostMinifyProcess,
|
||||||
+platforms: Set<string>,
|
+platforms: Set<string>,
|
||||||
+polyfillModuleNames?: Array<string>,
|
+polyfillModuleNames?: Array<string>,
|
||||||
+projectRoots: Array<string>,
|
+projectRoots: Array<string>,
|
||||||
|
@ -55,7 +55,7 @@ class Resolver {
|
||||||
|
|
||||||
_depGraph: DependencyGraph;
|
_depGraph: DependencyGraph;
|
||||||
_minifyCode: MinifyCode;
|
_minifyCode: MinifyCode;
|
||||||
_postMinifyProcess: ?PostMinifyProcess;
|
_postMinifyProcess: PostMinifyProcess;
|
||||||
_polyfillModuleNames: Array<string>;
|
_polyfillModuleNames: Array<string>;
|
||||||
|
|
||||||
constructor(opts: Options, depGraph: DependencyGraph) {
|
constructor(opts: Options, depGraph: DependencyGraph) {
|
||||||
|
|
|
@ -68,7 +68,7 @@ type Options = {
|
||||||
platforms?: Array<string>,
|
platforms?: Array<string>,
|
||||||
polyfillModuleNames?: Array<string>,
|
polyfillModuleNames?: Array<string>,
|
||||||
postProcessModules?: PostProcessModules,
|
postProcessModules?: PostProcessModules,
|
||||||
postMinifyProcess?: PostMinifyProcess,
|
postMinifyProcess: PostMinifyProcess,
|
||||||
projectRoots: Array<string>,
|
projectRoots: Array<string>,
|
||||||
providesModuleNodeModules?: Array<string>,
|
providesModuleNodeModules?: Array<string>,
|
||||||
reporter: Reporter,
|
reporter: Reporter,
|
||||||
|
@ -124,7 +124,7 @@ class Server {
|
||||||
platforms: Array<string>,
|
platforms: Array<string>,
|
||||||
polyfillModuleNames: Array<string>,
|
polyfillModuleNames: Array<string>,
|
||||||
postProcessModules?: PostProcessModules,
|
postProcessModules?: PostProcessModules,
|
||||||
postMinifyProcess?: PostMinifyProcess,
|
postMinifyProcess: PostMinifyProcess,
|
||||||
projectRoots: Array<string>,
|
projectRoots: Array<string>,
|
||||||
providesModuleNodeModules?: Array<string>,
|
providesModuleNodeModules?: Array<string>,
|
||||||
reporter: Reporter,
|
reporter: Reporter,
|
||||||
|
|
Loading…
Reference in New Issue