text: 
  const path = require("path");
  const merge = require("webpack-merge");
  const HtmlWebpackPlugin = require("html-webpack-plugin");
  
  module.exports = (env) => {
      return {
          entry: {
              app: "./src/app.ts",
          },
          resolve: {
              extensions: [".ts", ".tsx", ".js"],
          },
          module: {
              rules: [
                  {
                      test: /\.tsx?$/,
                      loader: "ts-loader",
                  },
                  {
                      test: /\.css$/i,
                      use: ["style-loader", "css-loader"],
                  }
              ],
          },
          output: {
              filename: "[name].bundle.js",
              path: path.resolve(__dirname, "dist"),
              library: "[name]",
              // https://github.com/webpack/webpack/issues/5767
              // https://github.com/webpack/webpack/issues/7939
              devtoolNamespace: "@fluid-example/coplay",
              libraryTarget: "umd",
          },
          plugins: [
              new HtmlWebpackPlugin({
                  template: "./public/index.html",
              }),
          ],
          mode: "development",
          devtool: "inline-source-map",
      };
  };
  