text: const path = require("path");
  const HtmlWebPackPlugin = require("html-webpack-plugin");
  
  module.exports = {
      entry: "./src/js/app.js",
      devtool: "inline-source-map",
      module: {
          rules: [
              {
                  test: /\.tsx?$/,
                  use: "ts-loader",
                  exclude: /node_modules/,
              },
              {
                  test: /\.(js|jsx)$/,
                  exclude: /node_modules/,
                  use: {
                      loader: "babel-loader",
                  },
              },
              {
                  test: /\.html$/,
                  use: [
                      {
                          loader: "html-loader",
                      },
                  ],
              },
          ],
      },
      resolve: {
          extensions: [".tsx", ".ts", ".js"],
      },
      plugins: [
          new HtmlWebPackPlugin({
              template: "./src/index.html",
              filename: "./index.html",
          }),
      ],
      output: {
          path: path.resolve(__dirname, "dist"),
          filename: "bundle.js",
      },
  };
  