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,