text: var path = require("path");
  
  module.exports = {
      mode: "production",
      entry: "./src/index.js",
      output: {
          path: path.resolve("build"),
          filename: "index.js",
          libraryTarget: "commonjs2",
      },
      module: {
          rules: [
              {
                  enforce: "pre",
                  test: /\.js$/,
                  exclude: /node_modules/,
                  loader: "eslint-loader",
              },
              { test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" },
              {
                  test: /\.css$/,
                  loader: "style-loader!css-loader",
              },
          ],
      },
      externals: {
          react: "react",
      },
  };
  