{"size": 268, "ext": "js", "max_stars_repo_path": "babel.config.js", "max_stars_repo_name": "liuchaosun/toy-react", "max_stars_repo_stars_event_min_datetime": "2020-09-13T12:03:08.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-13T12:03:08.000Z", "max_issues_repo_path": "babel.config.js", "max_issues_repo_name": "liuchaosun/toy-react", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "babel.config.js", "max_forks_repo_name": "liuchaosun/toy-react", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.1428571429, "max_line_length": 43, "alphanum_fraction": 0.5410447761}
module.exports = {
  presets: ['@babel/preset-env'],
  plugins: [
    [
      '@babel/plugin-transform-react-jsx',
      {
        // 可以通过这个配置 pragma 来改变生成后的参数名
        // JSX 默认是 React.creatElement,这里修改下
        pragma: 'React.createElement',
      },
    ],
  ],
};
