module.exports = {
  presets: [
    ['@babel/preset-env',
      {
        useBuiltIns: 'usage',
        corejs: 3,
      },
    ],
    ['@babel/preset-react', {
      "runtime": "automatic"
    }],
    ['@babel/preset-typescript'],
  ],
  plugins: [
    '@babel/plugin-transform-runtime',
    '@babel/plugin-proposal-class-properties',
    ['@babel/plugin-transform-modules-commonjs', { strictMode: false }],
  ],
  env: {
    production: {
      plugins: [
        'babel-plugin-minify-dead-code-elimination',
      ],
    },
  },
};
