module.exports = function (api) { api.cache(true) const presets = [ '@babel/preset-env', '@babel/preset-react' ] const plugins = [ '@babel/plugin-proposal-class-properties', '@babel/plugin-transform-runtime' // for async/await in node ] return { presets, plugins } }