<commit_before>const webpack = require('webpack');
const { join } = require('path');
const include = join(__dirname, 'src');

const COMPONENTS = `${__dirname}/src/components`;

const DEFAULT_RULES = [
  {
    test: /\.js$/,
    loader: 'babel-loader',
    include,
    exclude: /node_modules/
  }
];

module.exports = [
  {
    entry: {
      checkbox: `${COMPONENTS}/checkbox`,
      editor: `${COMPONENTS}/editor`,
      layout: `${COMPONENTS}/layout`
    },
    output: {
      path: join(__dirname, 'dist', 'js'),
      filename: '[name].js'
    },
    devtool: 'source-map',
    module: {
      rules: DEFAULT_RULES
    }
  },

  {
    entry: {
      formed: `${__dirname}/src/formed`
    },
    output: {
      path:  join(__dirname, 'dist', 'js'),
      filename: '[name].min.js',
      library: '[name]',
      libraryTarget: 'umd'
    },
    devtool: 'source-map',
    module: {
      rules: DEFAULT_RULES
    },
    plugins: [
      // Minification of code.
      new webpack.optimize.UglifyJsPlugin({
        sourceMap: true,
        compress: {<commit_msg>chore(build): webpack<commit_after>const webpack = require('webpack');
const { join } = require('path');
const include = join(__dirname, 'src');

const COMPONENTS = `${__dirname}/src/components`;

const DEFAULT_RULES = [
  {
    test: /\.js$/,
    loader: 'babel-loader',
    include,
    exclude: /node_modules/
  }
];

module.exports = [
  {
    entry: {
      checkbox: `${COMPONENTS}/checkbox`,
      editor: `${COMPONENTS}/editor`,
      layout: `${COMPONENTS}/layout`,
      radio: `${COMPONENTS}/radio`
    },
    output: {
      path: join(__dirname, 'dist', 'js'),
      filename: '[name].js'
    },
    devtool: 'source-map',
    module: {
      rules: DEFAULT_RULES
    }
  },

  {
    entry: {
      formed: `${__dirname}/src/formed`
    },
    output: {
      path:  join(__dirname, 'dist', 'js'),
      filename: '[name].min.js',
      library: '[name]',
      libraryTarget: 'umd'
    },
    devtool: 'source-map',
    module: {
      rules: DEFAULT_RULES
    },
    plugins: [
      // Minification of code.
      new webpack.optimize.UglifyJsPlugin({
        sourceMap: true,
        compress: {
{'fraction_non_alphanumeric': 0.1738532110091743, 'fraction_numerical': 0.0, 'mean_word_length': 2.3919129082426127, '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': '80616', 'n_tokens_mistral': 745, 'n_tokens_neox': 738, 'n_words': 143}