The Wayback Machine - https://web.archive.org/web/20200912112524/https://github.com/nuxt/nuxt.js/blob/dev/babel.config.js
Skip to content
Permalink
dev
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (17 sloc) 335 Bytes
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 {}
}
You can’t perform that action at this time.