babel.config.js (
7
lines of code) (
raw
):
module.exports = (api) => { const config = {}; if (api.env('test')) { config.presets = [['@babel/preset-env', { targets: { node: 'current' } }]]; } return config; };