code: function addReactSupport(env, webpackConfig) {
      var babelLoaderOptions = webpackConfig.module.rules.filter(function(rule) {
          return rule.loader == 'babel-loader'
      })[0].options;
  
      // 添加 babel-preset-react 启用 JSX
      babelLoaderOptions.presets.push('react');
  }
docs: 添加对 React 支持的配置
  
  @param {object} env
  @param {object} webpackConfig