text: const path = require("path")
  const webpack = require("webpack")
  const TerserPlugin = require("terser-webpack-plugin")
  
  module.exports = {
      mode: "production",
      node: {
          global: false
      },
      optimization: {
          minimize: true,
          minimizer: [
              new TerserPlugin({
                  terserOptions: {
                      keep_classnames: true,
                      keep_fnames: true
                  }
              })
          ]
      },
      entry: {
          "tsserval.min": "./dist/index"
      },
      output: {
          path: path.resolve(__dirname, "lib-web"),
          filename: "[name].js",
          library: "TSServal",
          umdNamedDefine: true
      },
      resolve: {
          extensions: [".js", ".json"],
          alias: {
              src: path.resolve(__dirname, "tmp-browser/src/")
          }
      },
      devtool: "source-map",
      externals: {
          chai: "chai"
      }
  }
  