text: module.exports = {
    presets: [
      '@babel/preset-react',
      '@babel/preset-flow',
      [
        '@babel/preset-env',
        {
          modules: false,
          useBuiltIns: 'usage',
          corejs: 3,
          exclude: ['transform-regenerator'],
        },
      ],
    ],
    plugins: [
      'react-hot-loader/babel',
      '@babel/plugin-proposal-class-properties',
      'module:fast-async',
    ],
    env: {
      production: {
        plugins: [
          'babel-plugin-jsx-remove-data-test-id',
        ],
      },
      test: {
        presets: [
          '@babel/preset-react',
          '@babel/preset-flow',
          [
            '@babel/preset-env',
            {
              modules: 'commonjs',
              useBuiltIns: 'usage',
              exclude: ['transform-regenerator'],
            },
          ],
        ],
        plugins: [
          '@babel/plugin-proposal-class-properties',
          'module:fast-async',
        ],
      },
    },
  };
  