mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
9c1e0d1743
Co-authored-by: Clark Du <clark.duxin@gmail.com> Co-authored-by: Pooya Parsa <pooya@pi0.ir>
16 lines
258 B
JavaScript
16 lines
258 B
JavaScript
module.exports = function (api) {
|
|
if (api.env('test')) {
|
|
return {
|
|
presets: [
|
|
['@babel/env', {
|
|
targets: {
|
|
node: 'current'
|
|
}
|
|
}]
|
|
],
|
|
plugins: ['dynamic-import-node']
|
|
}
|
|
}
|
|
return {}
|
|
}
|