Make `postMinifyProcess` non-optional
Reviewed By: cpojer Differential Revision: D5052315 fbshipit-source-id: 4c3573fc6e97b4f561f371179ea2dd6f89fac05a
This commit is contained in:
parent
4ae8e5e21a
commit
dc783d97e8
|
@ -84,6 +84,7 @@ function buildBundle(
|
|||
globalTransformCache: null,
|
||||
hasteImpl: config.hasteImpl,
|
||||
platforms: defaultPlatforms.concat(platforms),
|
||||
postMinifyProcess: config.postMinifyProcess,
|
||||
postProcessModules: config.postProcessModules,
|
||||
projectRoots: config.getProjectRoots(),
|
||||
providesModuleNodeModules: providesModuleNodeModules,
|
||||
|
|
|
@ -127,7 +127,7 @@ type Options = {|
|
|||
+platforms: Array<string>,
|
||||
+polyfillModuleNames: Array<string>,
|
||||
+postProcessModules?: PostProcessModules,
|
||||
+postMinifyProcess?: PostMinifyProcess,
|
||||
+postMinifyProcess: PostMinifyProcess,
|
||||
+projectRoots: Array<string>,
|
||||
+providesModuleNodeModules?: Array<string>,
|
||||
+reporter: Reporter,
|
||||
|
|
|
@ -39,7 +39,7 @@ type Options = {|
|
|||
+hasteImpl?: HasteImpl,
|
||||
+maxWorkerCount: number,
|
||||
+minifyCode: MinifyCode,
|
||||
+postMinifyProcess?: PostMinifyProcess,
|
||||
+postMinifyProcess: PostMinifyProcess,
|
||||
+platforms: Set<string>,
|
||||
+polyfillModuleNames?: Array<string>,
|
||||
+projectRoots: Array<string>,
|
||||
|
@ -55,7 +55,7 @@ class Resolver {
|
|||
|
||||
_depGraph: DependencyGraph;
|
||||
_minifyCode: MinifyCode;
|
||||
_postMinifyProcess: ?PostMinifyProcess;
|
||||
_postMinifyProcess: PostMinifyProcess;
|
||||
_polyfillModuleNames: Array<string>;
|
||||
|
||||
constructor(opts: Options, depGraph: DependencyGraph) {
|
||||
|
|
|
@ -68,7 +68,7 @@ type Options = {
|
|||
platforms?: Array<string>,
|
||||
polyfillModuleNames?: Array<string>,
|
||||
postProcessModules?: PostProcessModules,
|
||||
postMinifyProcess?: PostMinifyProcess,
|
||||
postMinifyProcess: PostMinifyProcess,
|
||||
projectRoots: Array<string>,
|
||||
providesModuleNodeModules?: Array<string>,
|
||||
reporter: Reporter,
|
||||
|
@ -124,7 +124,7 @@ class Server {
|
|||
platforms: Array<string>,
|
||||
polyfillModuleNames: Array<string>,
|
||||
postProcessModules?: PostProcessModules,
|
||||
postMinifyProcess?: PostMinifyProcess,
|
||||
postMinifyProcess: PostMinifyProcess,
|
||||
projectRoots: Array<string>,
|
||||
providesModuleNodeModules?: Array<string>,
|
||||
reporter: Reporter,
|
||||
|
|
Loading…
Reference in New Issue