{"size": 1122, "ext": "js", "max_stars_repo_path": "babel.config.js", "max_stars_repo_name": "mihkel-t/musicbrainz-server", "max_stars_repo_stars_event_min_datetime": "2019-03-14T05:31:35.000Z", "max_stars_repo_stars_event_max_datetime": "2019-03-14T05:32:01.000Z", "max_issues_repo_path": "babel.config.js", "max_issues_repo_name": "mihkel-t/musicbrainz-server", "max_issues_repo_issues_event_min_datetime": "2021-05-12T00:15:55.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-14T04:56:24.000Z", "max_forks_repo_path": "babel.config.js", "max_forks_repo_name": "mihkel-t/musicbrainz-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 22.44, "max_line_length": 57, "alphanum_fraction": 0.577540107}
module.exports = function (api) {
  api.cache.using(() => process.env.NODE_ENV);

  const presets = [
    ['@babel/preset-env', {
      targets: {
        chrome: '49',
        edge: '14',
        firefox: '52',
        ie: '11',
        node: '6',
        safari: '9.0',
      }
    }],
  ];

  const plugins = [
    '@babel/plugin-transform-flow-strip-types',
    '@babel/plugin-transform-react-jsx',
    '@babel/plugin-transform-react-constant-elements',
    ['@babel/plugin-transform-runtime', {
      corejs: 2,
      helpers: true,
      regenerator: true,
      useESModules: false,
    }],
    '@babel/plugin-proposal-class-properties',
    '@babel/plugin-syntax-dynamic-import',
    '@babel/plugin-proposal-optional-chaining',
    '@babel/plugin-proposal-nullish-coalescing-operator',
  ];

  if (process.env.NODE_ENV === 'test') {
    plugins.push('babel-plugin-istanbul');
  }

  const ignore = [
    'node_modules',
    'root/static/scripts/tests/typeInfo.js',
    /root\/static\/build\/jed-[A-z_-]+?\.source\.js$/,
  ];

  return {
    presets,
    plugins,
    ignore,
    sourceType: 'unambiguous',
  };
};
