<commit_before>const { resolve } = require('path');
const { readFileSync } = require('fs');

const pathIsInside = require('path-is-inside');
const findRoot = require('find-root');

const PROPKEY_ESNEXT = 'esnext';
const sourceDirectory = resolve(__dirname, '../src');
const nodeModuleDirectory = resolve(__dirname, '../node_modules');

module.exports = {
  entry: resolve(sourceDirectory, 'index.js'),
  output: {
    path: resolve(__dirname, '../dist'),
    filename: '<%= initialComponentName %>.bundle.js'
  },
  resolve: {
    mainFields: [PROPKEY_ESNEXT, 'browser', 'module', 'main']
  },
  module: {
    rules: [
      {
        test: /\.m?js$/,
        include: (filepath) => {
          return pathIsInside(filepath, sourceDirectory) ||
            (pathIsInside(filepath, nodeModuleDirectory) &&
            hasPkgEsnext(filepath));
        },
        use: {
          loader: 'babel-loader',
          options: {
            presets: [
              ['env', {
                targets: {
                  browsers: [
                    'last 2 versions',
                    'ie 11'
                  ]<commit_msg>Ignore babelrc files (fixes build issue)<commit_after>const { resolve } = require('path');
const { readFileSync } = require('fs');

const pathIsInside = require('path-is-inside');
const findRoot = require('find-root');

const PROPKEY_ESNEXT = 'esnext';
const sourceDirectory = resolve(__dirname, '../src');
const nodeModuleDirectory = resolve(__dirname, '../node_modules');

module.exports = {
  entry: resolve(sourceDirectory, 'index.js'),
  output: {
    path: resolve(__dirname, '../dist'),
    filename: '<%= initialComponentName %>.bundle.js'
  },
  resolve: {
    mainFields: [PROPKEY_ESNEXT, 'browser', 'module', 'main']
  },
  module: {
    rules: [
      {
        test: /\.m?js$/,
        include: (filepath) => {
          return pathIsInside(filepath, sourceDirectory) ||
            (pathIsInside(filepath, nodeModuleDirectory) &&
            hasPkgEsnext(filepath));
        },
        use: {
          loader: 'babel-loader',
          options: {
            babelrc: false,
            presets: [
              ['env', {
                targets: {
                  browsers: [
                    'last 2 versions',
                    'ie 11'
                  ]
{'fraction_non_alphanumeric': 0.15010845986984817, 'fraction_numerical': 0.0026030368763557484, 'mean_word_length': 2.124661246612466, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4433261', 'n_tokens_mistral': 679, 'n_tokens_neox': 645, 'n_words': 137}