<commit_before>const path = require('path');

module.exports = {
  mode: 'production',
  entry: './src/index.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'NymphClient.js',
    library: ['NymphClient'],
    libraryTarget: 'this'
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ['@babel/preset-env'],
            plugins: [
              ['@babel/transform-classes', {
                builtins: ['Error']
              }]
            ]
          }
        }
      }<commit_msg>Export UMD module with same name as package.<commit_after>const path = require('path');

module.exports = {
  mode: 'production',
  entry: {
    NymphClient: './src/index.js'
  },
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: '[name].js',
    library: ['nymph-client'],
    libraryTarget: 'umd',
    globalObject: 'this'
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ['@babel/preset-env'],
            plugins: [
              ['@babel/transform-classes', {
                builtins: ['Error']
              }]
            ]
          }
        }
      }
{'fraction_non_alphanumeric': 0.16285924834193072, 'fraction_numerical': 0.0, 'mean_word_length': 1.5574387947269304, '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': '3695955', 'n_tokens_mistral': 426, 'n_tokens_neox': 409, 'n_words': 78}