refactor: move babel defaults value to proper place

This commit is contained in:
Clark Du 2018-03-09 14:19:36 +08:00
parent b138ffef8e
commit 97a6f46507
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9
1 changed files with 2 additions and 4 deletions

View File

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