fix: babelrc cannot be set to true

This commit is contained in:
otato.z 2018-03-09 13:33:14 +08:00
parent e514ce326c
commit 4b46058994

View File

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