mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(babel-preset-app): respect explicit options.targets for modern preset (#9337)
This commit is contained in:
parent
b116d0ded4
commit
b9bfb9df01
@ -97,12 +97,7 @@ module.exports = (api, options = {}) => {
|
||||
modern: { esmodules: true }
|
||||
}
|
||||
|
||||
let { targets = defaultTargets[envName] } = options
|
||||
|
||||
// modern mode can only be { esmodules: true }
|
||||
if (envName === 'modern') {
|
||||
targets = defaultTargets.modern
|
||||
}
|
||||
const { targets = defaultTargets[envName] } = options
|
||||
|
||||
const polyfills = []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user