<commit_before>const resolve = require('path').resolve;
const webpackValidator = require('webpack-validator');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const getIfUtils = require('webpack-config-utils').getIfUtils;

module.exports = env => {
  const { ifProd, ifNotProd } = getIfUtils(env);

  const config = webpackValidator({
    context: resolve('client'),
    entry: {
      profile: './profileIndex.jsx',
      landing: './landingIndex.jsx',
      feed: './feedIndex.jsx',
      signup: './signupIndex.jsx',
      settings: './settingsIndex.jsx'
    },
    output: {
      filename: 'bundle.[name].js',
      path: resolve('dist'),
      pathinfo: ifNotProd()   // this is for debugging import statements in dev mode
    },
    devtool: ifProd('source-map', 'eval'),
    module: {
      loaders: [
        {
          test: /\.jsx*$/,
          loaders: [ 'babel' ],
          exclude: /node_modules/
        }
      ]
    },
    plugins: [
      new ProgressBarPlugin()
    ]
  });

  return config;
};<commit_msg>(fix) Change ES6 import/export syntax to ES5<commit_after>const resolve = require('path').resolve;
const webpackValidator = require('webpack-validator');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const getIfUtils = require('webpack-config-utils').getIfUtils;

module.exports = env => {
  const { ifProd, ifNotProd } = getIfUtils(env);
  const config = webpackValidator({
    context: path.resolve('client'),
    entry: {
      profile: './profileIndex.jsx',
      landing: './landingIndex.jsx',
      feed: './feedIndex.jsx',
      signup: './signupIndex.jsx',
      settings: './settingsIndex.jsx'
    },
    output: {
      filename: 'bundle.[name].js',
      path: path.resolve('dist'),
      pathinfo: ifNotProd()   // this is for debugging import statements in dev mode
    },
    devtool: ifProd('source-map', 'eval'),
    module: {
      loaders: [
        {
          test: /\.jsx*$/,
          loaders: [ 'babel' ],
          exclude: /node_modules/
        }
      ]
    },
    plugins: [
      new ProgressBarPlugin()
    ]
  });

  return config;
};
{'fraction_non_alphanumeric': 0.1563380281690141, 'fraction_numerical': 0.0009389671361502347, 'mean_word_length': 2.581512605042017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '83466', 'n_tokens_mistral': 659, 'n_tokens_neox': 653, 'n_words': 138}