text: const MiniCssExtractPlugin = require("mini-css-extract-plugin");
  const path = require("path");
  
  module.exports = {
    entry: ["eventsource-polyfill", "./src/index.js"],
    output: {
      path: path.resolve(__dirname, "dist"),
      filename: "bundle.js",
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          include: [path.resolve(__dirname, "src/")],
          exclude: /node_modules/,
          use: {
            loader: "babel-loader",
            options: {
              presets: ["@babel/preset-env"],
              plugins: ["@babel/plugin-proposal-class-properties"],
            },
          },
        },
        {
          test: /\.css$/,
          use: [MiniCssExtractPlugin.loader, "css-loader"],
        },
      ],
    },
    plugins: [new MiniCssExtractPlugin({ filename: "index.css" })],
    devtool: "source-map",
    mode: "development",
  };
  