{"size": 700, "ext": "js", "max_stars_repo_path": "babel.config.js", "max_stars_repo_name": "Nexysweb/digis-boilerplate", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "babel.config.js", "max_issues_repo_name": "Nexysweb/digis-boilerplate", "max_issues_repo_issues_event_min_datetime": "2020-09-11T11:06:27.000Z", "max_issues_repo_issues_event_max_datetime": "2020-09-11T11:06:27.000Z", "max_forks_repo_path": "babel.config.js", "max_forks_repo_name": "Nexysweb/digis-boilerplate", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 21.875, "max_line_length": 81, "alphanum_fraction": 0.64}
module.exports = function (api) {
  const inProd = api.env("production");

  // the statement below is commented to avoid pollution in the console (`false`)
  //console.log(inProd)

  const plugins = [
    '@babel/plugin-proposal-class-properties',
    '@babel/plugin-transform-modules-commonjs',
    '@babel/plugin-proposal-object-rest-spread',
    '@babel/plugin-transform-async-to-generator',
    '@babel/plugin-transform-arrow-functions'
  ]

  const presets = [
    '@babel/preset-env'
  ];

  plugins.push(
    ['@babel/plugin-transform-runtime', {
      corejs: 3,
      helpers: true,
      regenerator: true,
      useESModules: false
    }]
  );

  return {
    plugins,
    presets
  };
};