From 97a6f4650750642ed0a62311bb506911c4456a6e Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 9 Mar 2018 14:19:36 +0800 Subject: [PATCH] refactor: move babel defaults value to proper place --- lib/builder/builder.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/builder/builder.js b/lib/builder/builder.js index 97a334a029..2a519ad722 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -179,12 +179,10 @@ module.exports = class Builder { getBabelOptions({ isServer }) { const options = _.defaults( {}, - { - cacheDirectory: !!this.options.dev - }, this.options.build.babel, { - babelrc: false + babelrc: false, + cacheDirectory: !!this.options.dev } )