text: const path = require("path");
  const webpack = require("webpack");
  
  module.exports = {
    entry: "./src/index.js",
    context: __dirname,
    target: "web",
    output: {
      path: path.resolve(__dirname, "dist"),
      filename: "next-core-sort.js",
      publicPath: "/dist/",
      library: "next-core-sort",
      globalObject: "this",
      libraryTarget: "umd",
      umdNamedDefine: true
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: {
            loader: "babel-loader"
          }
        }
      ]
    },
    externals: {
    },
    stats: "errors-only",
    devtool: "source-map",
    plugins: [
      new webpack.DefinePlugin({
        VERSION: JSON.stringify(require("./package.json").version)
      })
    ]
  };
  