<commit_before>var webpack = require('webpack');
var path = require('path');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

module.exports = {
  context: __dirname,
  entry: "./src/visualizer.ts",
  entry: {
    "ui-router-visualizer": ["./src/visualizer.ts"],
    "ui-router-visualizer.min": ["./src/visualizer.ts"]
  },

  output: {
    path: path.resolve(__dirname, "_bundles"),
    publicPath: "/_bundles/",
    filename: "[name].js",
    libraryTarget: "umd",
    library: "ui-router-visualizer",
    umdNamedDefine: true
  },

  // Source maps support ('inline-source-map' also works)
  devtool: 'source-map',

  plugins: [
    new ForkTsCheckerWebpackPlugin(),

    new webpack.optimize.UglifyJsPlugin({
      include: /\.min\.js$/,
      minify: true,
      sourceMap: true,
      compress: { warnings: false },
    }),

    new webpack.DefinePlugin({
      'process.env': {
        'NODE_ENV': JSON.stringify('production')
      }
    }),
<commit_msg>feat(bundle): Rename UMD name from `ui-router-visualizer` to `@uirouter/visualizer` for consistency<commit_after>var webpack = require('webpack');
var path = require('path');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

module.exports = {
  context: __dirname,
  entry: "./src/visualizer.ts",
  entry: {
    "ui-router-visualizer": ["./src/visualizer.ts"],
    "ui-router-visualizer.min": ["./src/visualizer.ts"]
  },

  output: {
    path: path.resolve(__dirname, "_bundles"),
    publicPath: "/_bundles/",
    filename: "[name].js",
    libraryTarget: "umd",
    library: "@uirouter/visualizer",
    umdNamedDefine: true
  },

  // Source maps support ('inline-source-map' also works)
  devtool: 'source-map',

  plugins: [
    new ForkTsCheckerWebpackPlugin(),

    new webpack.optimize.UglifyJsPlugin({
      include: /\.min\.js$/,
      minify: true,
      sourceMap: true,
      compress: { warnings: false },
    }),

    new webpack.DefinePlugin({
      'process.env': {
        'NODE_ENV': JSON.stringify('production')
      }
    }),

{'fraction_non_alphanumeric': 0.16758494031221305, 'fraction_numerical': 0.0, 'mean_word_length': 3.3063241106719365, 'pattern_counts': {'":': 4, '<': 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': '7104531', 'n_tokens_mistral': 748, 'n_tokens_neox': 713, 'n_words': 135}