Make `postMinifyProcess` non-optional

Reviewed By: cpojer

Differential Revision: D5052315

fbshipit-source-id: 4c3573fc6e97b4f561f371179ea2dd6f89fac05a
This commit is contained in:
David Aurelio 2017-05-12 11:31:56 -07:00 committed by Facebook Github Bot
parent 4ae8e5e21a
commit dc783d97e8
4 changed files with 6 additions and 5 deletions

View File

@ -84,6 +84,7 @@ function buildBundle(
globalTransformCache: null, globalTransformCache: null,
hasteImpl: config.hasteImpl, hasteImpl: config.hasteImpl,
platforms: defaultPlatforms.concat(platforms), platforms: defaultPlatforms.concat(platforms),
postMinifyProcess: config.postMinifyProcess,
postProcessModules: config.postProcessModules, postProcessModules: config.postProcessModules,
projectRoots: config.getProjectRoots(), projectRoots: config.getProjectRoots(),
providesModuleNodeModules: providesModuleNodeModules, providesModuleNodeModules: providesModuleNodeModules,

View File

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

View File

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

View File

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