mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
refactor: fallback to babel-preset-env defualt targets when buildTarget is not specified
This commit is contained in:
parent
aad46ed674
commit
176641f6cb
@ -49,7 +49,7 @@ module.exports = (context, options = {}) => {
|
||||
let { targets } = options
|
||||
if (modern === true) {
|
||||
targets = { esmodules: true }
|
||||
} else if (targets === undefined) {
|
||||
} else if (targets === undefined && typeof buildTarget === 'string') {
|
||||
targets = buildTarget === 'server' ? { node: 'current' } : { ie: 9 }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user