<commit_before>import Config, { exportForWebpack } from './src/index.js';
import pkg from './package.json';
import nodeExternals from 'webpack-node-externals';
import fp from 'lodash/fp';

let cfg = Config({
  env: getNodeEnv(),
  context: __dirname + '/src',
  debug: true,
  cache: true,
  watch: true,
  devtool: '#cheap-module-eval-inline-source-map',
  entry: {
    main: './index.js',
  },
  output: {
    path: './lib',
    filename: `${pkg.name}.js`
  },
  resolve: {
    root: void(0),
    modulesDirectories: {
      'default': __dirname + '/node_modules'
    }
  },
  module: {
    loaders: {}
  },
  plugins: {},
})
.useIf(['env', 'production'], c => c.set('devtool', void(0)))
.useIf(['env', 'production'], c => c.set('debug', false).set('watch', false))
.use(babelConfig())
.use(nodeWebpack)
;

cfg = cfg
.use(exportForWebpack);

getNodeEnv().development && console.log(cfg.toJs());
<commit_msg>Removed unneeded settings<commit_after>import Config, { exportForWebpack } from './src/index.js';
import pkg from './package.json';
import nodeExternals from 'webpack-node-externals';
import fp from 'lodash/fp';

let cfg = Config({
  env: getNodeEnv(),
  context: __dirname + '/src',
  debug: true,
  cache: true,
  watch: true,
  devtool: '#cheap-module-eval-inline-source-map',
  entry: {
    main: './index.js',
  },
  output: {
    path: './lib',
    filename: `${pkg.name}.js`
  },
  module: {
    loaders: {}
  }
})
.useIf(['env', 'production'], c => c.set('devtool', void(0)))
.useIf(['env', 'production'], c => c.set('debug', false).set('watch', false))
.use(babelConfig())
.use(nodeWebpack)
;

cfg = cfg
.use(exportForWebpack);

getNodeEnv().development && console.log(cfg.toJs());

{'fraction_non_alphanumeric': 0.2088235294117647, 'fraction_numerical': 0.0017647058823529412, 'mean_word_length': 3.8323863636363638, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5595660', 'n_tokens_mistral': 614, 'n_tokens_neox': 607, 'n_words': 132}