The Wayback Machine - https://web.archive.org/web/20210715004749/https://github.com/nuxt/nuxt.js/blob/dev/babel.config.js
Skip to content
Permalink
dev
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
function isBabelLoader (caller) {
return caller && caller.name === 'babel-loader'
}
module.exports = function (api) {
if (api.env('test') && !api.caller(isBabelLoader)) {
return {
presets: [
['@babel/env', {
targets: {
node: 'current'
}
}]
]
}
}
return {}
}