module.exports = {
  presets: [
    [
      'babel-preset-env',
      {
        targets: {
          node: 'current',
        },
      },
    ],
  ],
};

module.exports = {
  presets: [
    [
      '@babel/preset-env',
      {
        targets: {
          node: 'current',
        },
      },
    ],
  ],
};

Fix babel-preset-env config