{"size": 1774, "ext": "js", "max_stars_repo_path": "packages/babel-preset-vanilla/index.js", "max_stars_repo_name": "o0y0o/f2e-dev-toolkit", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/babel-preset-vanilla/index.js", "max_issues_repo_name": "o0y0o/f2e-dev-toolkit", "max_issues_repo_issues_event_min_datetime": "2021-02-28T03:21:24.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-27T16:29:09.000Z", "max_forks_repo_path": "packages/babel-preset-vanilla/index.js", "max_forks_repo_name": "o0y0o/f2e-dev-toolkit", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 35, "max_forks_count": null, "avg_line_length": 35.48, "max_line_length": 94, "alphanum_fraction": 0.6257046223}
const defaultModuleAlias = { '@app': './src' }

module.exports = (_, { moduleAlias = defaultModuleAlias }) => ({
  presets: [require.resolve('@babel/preset-env')],
  plugins: [
    [
      require.resolve('babel-plugin-module-resolver'),
      { alias: moduleAlias, transformFunctions: ['module.hot.accept'] }
    ],
    [require.resolve('@babel/plugin-proposal-decorators'), { legacy: true }],
    require.resolve('@babel/plugin-proposal-class-properties'),
    require.resolve('@babel/plugin-proposal-do-expressions'),
    require.resolve('@babel/plugin-proposal-export-default-from'),
    require.resolve('@babel/plugin-proposal-function-bind'),
    require.resolve('@babel/plugin-proposal-partial-application'),
    [
      require.resolve('@babel/plugin-proposal-pipeline-operator'),
      { proposal: 'minimal' }
    ],
    require.resolve('@babel/plugin-proposal-private-methods'),
    require.resolve('@babel/plugin-proposal-throw-expressions'),
    require.resolve('@babel/plugin-syntax-dynamic-import'),
    require.resolve('@babel/plugin-transform-runtime'),
    [
      require.resolve('babel-plugin-transform-imports'),
      {
        'lodash/fp': {
          transform: 'lodash/fp/${member}', // eslint-disable-line no-template-curly-in-string
          preventFullImport: true
        },
        lodash: {
          transform: 'lodash/${member}', // eslint-disable-line no-template-curly-in-string
          preventFullImport: true
        },
        ramda: {
          transform: 'ramda/src/${member}', // eslint-disable-line no-template-curly-in-string
          preventFullImport: true
        }
      }
    ]
  ],
  env: {
    test: {
      presets: [
        [require.resolve('@babel/preset-env'), { targets: { node: 'current' } }]
      ]
    }
  }
})
