From 4f55aadd1e4736d200f8e5165f1983a97a06412f Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 13 Dec 2017 05:47:44 +0330 Subject: [PATCH] fix: temporary disable build.config hydration --- lib/common/options.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/common/options.js b/lib/common/options.js index b80681e75b..27e3df7dfa 100755 --- a/lib/common/options.js +++ b/lib/common/options.js @@ -36,11 +36,13 @@ Options.from = function (_options) { options.rootDir = hasValue(options.rootDir) ? options.rootDir : process.cwd() // Apply defaults by ${buildDir}/dist/build.config.js - const buildDir = options.buildDir || Options.defaults.buildDir - const buildConfig = resolve(options.rootDir, buildDir, 'build.config.js') - if (existsSync(buildConfig)) { - _.defaultsDeep(options, require(buildConfig)) - } + // TODO: Unsafe operation. + // const buildDir = options.buildDir || Options.defaults.buildDir + // const buildConfig = resolve(options.rootDir, buildDir, 'build.config.js') + // if (existsSync(buildConfig)) { + // _.defaultsDeep(options, require(buildConfig)) + // } + // Apply defaults _.defaultsDeep(options, Options.defaults)