text: module.exports = {
    plugins: [
      ['@babel/plugin-proposal-class-properties', {loose: true}],
      ['@babel/plugin-proposal-object-rest-spread', {loose: true}],
      ['@babel/plugin-proposal-private-methods', {loose: true}],
      ['add-module-exports', {addDefaultProperty: true}],
      ['@babel/plugin-transform-runtime'],
    ],
    presets: [
      [
        '@babel/preset-env',
        {
          targets: {browsers: '> 5%'},
          modules: 'commonjs',
          useBuiltIns: 'usage',
          corejs: 3,
        },
      ],
      '@babel/typescript',
      '@babel/preset-react',
    ],
    env: {
      production: {
        ignore: ['**/*.spec.js'],
      },
      test: {
        presets: [
          [
            '@babel/preset-env',
            {
              modules: 'commonjs',
            },
          ],
          '@babel/typescript',
        ],
      },
    },
  }
  