<commit_before>const webpack = require('webpack'); //to access built-in plugins
const path = require('path');

const config = {
  entry: './src/syncplay.js',
  output: {
    path: path.resolve(__dirname, 'build'),
    filename: 'syncplay.js'
  },
  module: {
    rules: [
      {
        test: /\.(js|jsx)$/, 
        exclude: /(node_modules|bower_components)/,
        use: {
          loader: 'babel-loader',
          options: {
            plugins: ["transform-flow-strip-types", "transform-remove-console"],
            presets: ['env']
          }
        }
      }
    ]
  }
}

module.exports = config;<commit_msg>Include env modes in webpack config<commit_after>const webpack = require('webpack'); //to access built-in plugins
const path = require('path');

const config = {
  entry: './src/syncplay.js',
  output: {
    path: path.resolve(__dirname, 'build'),
    filename: 'syncplay.js'
  },
  module: {
    rules: [
      {
        test: /\.(js|jsx)$/, 
        exclude: /(node_modules|bower_components)/,
        use: {
          loader: 'babel-loader',
          options: {
            "env": {
              "development": {
                "plugins": ["transform-flow-strip-types"],
                "presets": ['env']
              },
              "production": {
                "plugins": ["transform-flow-strip-types", "transform-remove-console"],
                "presets": ['env']
              }
            }
          }
        }
      }
    ]
  }
}

module.exports = config;
{'fraction_non_alphanumeric': 0.1627751834556371, 'fraction_numerical': 0.0, 'mean_word_length': 1.7372262773722629, 'pattern_counts': {'":': 7, '<': 3, '<?xml version=': 0, '>': 3, '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': '304514', 'n_tokens_mistral': 456, 'n_tokens_neox': 443, 'n_words': 85}