Point it to a config file and in the config file s...
# help
m
Point it to a config file and in the config file set the babel-preset-env
Copy code
webpackOptions: require('../../webpack.config'),
Copy code
js
{
  mode: 'development',
  module: {
    rules: [
      {
        test: /\.jsx?$/,
        exclude: [/node_modules/],
        use: [{
          loader: 'babel-loader',
          options: {
            presets: ['@babel/preset-env'],
          },
        }],
      },
    ],
  },
}