{"size": 560, "ext": "js", "max_stars_repo_path": "babel.config.js", "max_stars_repo_name": "tripsimian/react-kiwicom-margarita", "max_stars_repo_stars_event_min_datetime": "2018-12-17T09:45:45.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-01T13:08:07.000Z", "max_issues_repo_path": "babel.config.js", "max_issues_repo_name": "tripsimian/react-kiwicom-margarita", "max_issues_repo_issues_event_min_datetime": "2018-11-28T11:13:19.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-10T09:08:53.000Z", "max_forks_repo_path": "babel.config.js", "max_forks_repo_name": "tripsimian/react-kiwicom-margarita", "max_forks_repo_forks_event_min_datetime": "2019-02-20T12:28:47.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-25T06:25:40.000Z"}
{"max_stars_count": 229, "max_issues_count": 715, "max_forks_count": 42, "avg_line_length": 25.4545454545, "max_line_length": 117, "alphanum_fraction": 0.6732142857}
// @flow

/* ::
 type API = {|
  +cache: boolean => void,
|};
*/

// A repo should only contain one babel.config.js, and workspaces should use .babelrc, however there is currently a 🐛
// https://github.com/martpie/next-plugin-transpile-modules/issues/1#issuecomment-425651334 so .babelrc is not loaded

module.exports = function(api /* :API */) {
  api.cache(true);
  const presets = ['babel-preset-expo', 'module:react-native-dotenv'];
  const plugins = ['babel-plugin-relay', '@babel/plugin-transform-runtime'];

  return {
    presets,
    plugins,
  };
};
