Permalink
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 {} | |
} |