From dc783d97e821655c0f64ceb12125373d2842bd77 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Fri, 12 May 2017 11:31:56 -0700 Subject: [PATCH] Make `postMinifyProcess` non-optional Reviewed By: cpojer Differential Revision: D5052315 fbshipit-source-id: 4c3573fc6e97b4f561f371179ea2dd6f89fac05a --- local-cli/bundle/buildBundle.js | 1 + packager/src/Bundler/index.js | 2 +- packager/src/Resolver/index.js | 4 ++-- packager/src/Server/index.js | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 123cb6b76..3376abf75 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -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, diff --git a/packager/src/Bundler/index.js b/packager/src/Bundler/index.js index 58531819b..da622d9c7 100644 --- a/packager/src/Bundler/index.js +++ b/packager/src/Bundler/index.js @@ -127,7 +127,7 @@ type Options = {| +platforms: Array, +polyfillModuleNames: Array, +postProcessModules?: PostProcessModules, - +postMinifyProcess?: PostMinifyProcess, + +postMinifyProcess: PostMinifyProcess, +projectRoots: Array, +providesModuleNodeModules?: Array, +reporter: Reporter, diff --git a/packager/src/Resolver/index.js b/packager/src/Resolver/index.js index 476ef3ae5..c3dbe177c 100644 --- a/packager/src/Resolver/index.js +++ b/packager/src/Resolver/index.js @@ -39,7 +39,7 @@ type Options = {| +hasteImpl?: HasteImpl, +maxWorkerCount: number, +minifyCode: MinifyCode, - +postMinifyProcess?: PostMinifyProcess, + +postMinifyProcess: PostMinifyProcess, +platforms: Set, +polyfillModuleNames?: Array, +projectRoots: Array, @@ -55,7 +55,7 @@ class Resolver { _depGraph: DependencyGraph; _minifyCode: MinifyCode; - _postMinifyProcess: ?PostMinifyProcess; + _postMinifyProcess: PostMinifyProcess; _polyfillModuleNames: Array; constructor(opts: Options, depGraph: DependencyGraph) { diff --git a/packager/src/Server/index.js b/packager/src/Server/index.js index 8bd3f8917..63732ee06 100644 --- a/packager/src/Server/index.js +++ b/packager/src/Server/index.js @@ -68,7 +68,7 @@ type Options = { platforms?: Array, polyfillModuleNames?: Array, postProcessModules?: PostProcessModules, - postMinifyProcess?: PostMinifyProcess, + postMinifyProcess: PostMinifyProcess, projectRoots: Array, providesModuleNodeModules?: Array, reporter: Reporter, @@ -124,7 +124,7 @@ class Server { platforms: Array, polyfillModuleNames: Array, postProcessModules?: PostProcessModules, - postMinifyProcess?: PostMinifyProcess, + postMinifyProcess: PostMinifyProcess, projectRoots: Array, providesModuleNodeModules?: Array, reporter: Reporter,