<commit_before>const webpack = require('webpack')
const nodeExternals = require('webpack-node-externals')

module.exports = {
  target: 'node',
  entry: {
    main: './src/index'
  },
  output: {
    filename: './lib/index.js'
  },
  resolve: {
    extensions: ['', '.ts', '.tsx', '.js', '.jsx'],
  },
  module: {
    loaders: [
      {
        test: /\.tsx?$/,
        loaders: [
          'babel-loader',
          'ts-loader'
        ]
      }
    ]
  },
  plugins: [
    new webpack.optimize.DedupePlugin()
  ],
  externals: [nodeExternals()]<commit_msg>fix webpack build config<commit_after>const webpack = require('webpack')
const nodeExternals = require('webpack-node-externals')

module.exports = {
  entry: {
    main: './src/index'
  },
  output: {
    filename: './lib/index.js',
    libraryTarget: "umd",
    umdNamedDefine: true
  },
  resolve: {
    extensions: ['', '.ts', '.tsx', '.js', '.jsx'],
  },
  module: {
    loaders: [
      {
        test: /\.tsx?$/,
        loaders: [
          'babel-loader',
          'ts-loader'
        ]
      }
    ]
  },
  plugins: [
    new webpack.optimize.DedupePlugin()
  ],
  externals: [nodeExternals()]
{'fraction_non_alphanumeric': 0.18949181739879414, 'fraction_numerical': 0.0, 'mean_word_length': 2.1236559139784945, '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': '7274935', 'n_tokens_mistral': 422, 'n_tokens_neox': 415, 'n_words': 70}