// Autogenerated by Mojo::Alien::webpack 0.14
const TerserPlugin = require('terser-webpack-plugin');

module.exports = function(config) {
  config.optimization.minimizer.push(new TerserPlugin({parallel: true}));
  config.module.rules.push({
    test: /\.js$/,
    exclude: /node_modules/,
    use: {
      loader: 'babel-loader',
      options: {
        plugins: ['@babel/plugin-transform-runtime'],
        presets: ['@babel/preset-env'],
      },
    },
  });
};
