<commit_before>import webpack from 'webpack';
import loaders from './loaders';

export default {
  name: 'nordnet-component-kit',
  entry: {
    'nordnet-component-kit': './src/index.js',
  },
  output: {
    library: 'NordnetComponentKit',
    libraryTarget: 'umd',
    path: './lib',
    filename: '[name].js',
  },
  resolve: {
    extensions: [
      '',
      '.js',
      '.jsx',
    ],
  },
  module: {
    loaders,
  },
  externals: {
    react: 'React',
    'react-dom': 'ReactDOM',
    'react-intl': 'ReactIntl',
    'nordnet-ui-kit': 'NordnetUiKit',
  },
  plugins: [
    new webpack.optimize.OccurenceOrderPlugin(),
    new webpack.optimize.DedupePlugin(),
    new webpack.DefinePlugin({
      'process.env': {
        NODE_ENV: JSON.stringify(process.env.NODE_ENV),
      },
    }),
  ],
};<commit_msg>Fixed webpack config once and for all (I hope...😬)<commit_after>import webpack from 'webpack';
import loaders from './loaders';

export default {
  name: 'nordnet-component-kit',
  entry: {
    'nordnet-component-kit': './src/index.js',
  },
  output: {
    library: 'NordnetComponentKit',
    libraryTarget: 'umd',
    path: './lib',
    filename: '[name].js',
  },
  resolve: {
    extensions: [
      '',
      '.js',
      '.jsx',
    ],
  },
  module: {
    loaders,
  },
  externals: {
    react: {
      root: 'React',
      commonjs2: 'react',
      commonjs: 'react',
      amd: 'react',
    },
    'react-dom': {
      root: 'ReactDOM',
      commonjs2: 'react-dom',
      commonjs: 'react-dom',
      amd: 'react-dom',
    },
    'react-intl': {
      root: 'ReactIntl',
      commonjs2: 'react-intl',
      commonjs: 'react-intl',
      amd: 'react-intl',
    },
    'nordnet-ui-kit': {
      root: 'NordnetUiKit',
      commonjs2: 'nordnet-ui-kit',
      commonjs: 'nordnet-ui-kit',
      amd: 'nordnet-ui-kit',
    },
  },
  plugins: [
    new webpack.optimize.OccurenceOrderPlugin(),
    new webpack.optimize.DedupePlugin(),
    new webpack.DefinePlugin({
      'process.env': {
        NODE_ENV: JSON.stringify(process.env.NODE_ENV),
      },
    }),
  ],
};
{'fraction_non_alphanumeric': 0.18190521780756344, 'fraction_numerical': 0.0019147917663954045, 'mean_word_length': 2.360128617363344, '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': '4298133', 'n_tokens_mistral': 769, 'n_tokens_neox': 769, 'n_words': 134}