{"size": 512, "ext": "js", "max_stars_repo_path": ".babelrc.js", "max_stars_repo_name": "grhbit/next-routes", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": ".babelrc.js", "max_issues_repo_name": "grhbit/next-routes", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": ".babelrc.js", "max_forks_repo_name": "grhbit/next-routes", "max_forks_repo_forks_event_min_datetime": "2020-04-12T19:32:56.000Z", "max_forks_repo_forks_event_max_datetime": "2020-04-12T19:32:56.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25.6, "max_line_length": 85, "alphanum_fraction": 0.720703125}
// Babel configuration used to compile the distributable library to 'dist/',
// and to compile sources (including TypeScript) for execution in Jest's environment.
// See https://babeljs.io/docs/en/config-files#file-relative-configuration

const presets = [
  require('@babel/preset-env'),
  require('next/babel')
]

// Only in the Jest environment, compile TypeScript sources
if (process.env.NODE_ENV === 'test') {
  presets.push(
    require('@zeit/next-typescript/babel')
  )
}

module.exports = {
  presets
}
