<commit_before>console.log('Load babel config');

module.exports = {
  presets: [
    [
      '@babel/preset-env',
      {
        loose:true,
        modules: false,
      },
    ],
  ],

  // plugins:[["@babel/plugin-transform-runtime",{
  //   helpers:false,
  //
  // }],
  //   ["module-resolver", {
  //     "root": ["./src"],
  //     "alias": {
  //       "@babel/runtime/regenerator": "regenerator-runtime",
  //     }
  //   }]
  // ],
  env: {
    test: {
      presets: [
        [
          '@babel/preset-env',
          {
            targets: {
              node: true,
            },
          },
        ],
      ],
      plugins: ['@babel/plugin-transform-modules-commonjs'],
    },
  },
};<commit_msg>clean babel<commit_after>console.log('Load babel config');

module.exports = (api) => {
  return ({
    presets: [
      [
        '@babel/preset-env',
        (api.env() !== 'test') ? ({
          loose: true,
          modules: false,
        }) : { targets: { node: true } },
      ],
    ],
  });
};
{'fraction_non_alphanumeric': 0.2060546875, 'fraction_numerical': 0.0, 'mean_word_length': 1.4231678486997636, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6830394', 'n_tokens_mistral': 357, 'n_tokens_neox': 351, 'n_words': 44}