Merge pull request #2973 from aaronzzz/fix-babelrc-cannot-be-set-to-true

fix: babelrc cannot be set to true, fix #1776
This commit is contained in:
Clark Du 2018-03-09 14:16:09 +08:00 committed by GitHub
commit b138ffef8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -180,10 +180,12 @@ module.exports = class Builder {
const options = _.defaults(
{},
{
babelrc: false,
cacheDirectory: !!this.options.dev
},
this.options.build.babel
this.options.build.babel,
{
babelrc: false
}
)
if (typeof options.presets === 'function') {