module.exports = {
  presets: ['@babel/env', '@babel/stage-0', '@babelreact'],
  plugins: [
    ['universal-import'],
    [
      'transform-runtime',
      {
        helpers: false,
        polyfill: false,
        regenerator: true,
        moduleName: 'babel-runtime',
      },
    ],
    'transform-class-properties',
  ],
  env: {
    development: {
      plugins: ['react-hot-loader/babel'],
    },
    test: {
      presets: ['env', 'stage-0', 'react'],
    },
  },
  compact: false,
}
