<commit_before>const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');

const debug = process.env.NODE_ENV !== 'production';

module.exports = {
  devtool: debug ? 'inline-source-map' : false,
  module: {
    rules: [
      { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ },
    ],
  },
  plugins: [
    ...debug ? [] : [new UglifyJsPlugin()],
  ],
};
<commit_msg>Use faster source maps<commit_after>const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');

const debug = process.env.NODE_ENV !== 'production';

module.exports = {
  devtool: debug ? 'cheap-module-eval-source-map' : false,
  module: {
    rules: [
      { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ },
    ],
  },
  plugins: [
    ...debug ? [] : [new UglifyJsPlugin()],
  ],
};

{'fraction_non_alphanumeric': 0.1896551724137931, 'fraction_numerical': 0.0, 'mean_word_length': 3.324468085106383, 'pattern_counts': {'":': 0, '<': 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': '2595020', 'n_tokens_mistral': 289, 'n_tokens_neox': 284, 'n_words': 51}