Nuxt/babel.config.js

16 lines
258 B
JavaScript
Raw Normal View History

module.exports = function (api) {
if (api.env('test')) {
return {
presets: [
['@babel/env', {
targets: {
node: 'current'
}
}]
],
plugins: ['dynamic-import-node']
}
}
return {}
}