text: const path = require("path");
  
  const config = {
      target: "electron-main",
      devtool: "source-map",
      entry: "./src/main.ts",
      output: {
          filename: "main.js",
          path: path.resolve(__dirname, "dist")
      },
      module: {
          rules: [
              {
                  test: /\.(ts)$/,
                  exclude: /node_modules/,
                  use: {
                      loader: "ts-loader"
                  }
              }
          ]
      },
      resolve: {
          extensions: [".ts", ".js"]
      },
      node: {
          __dirname: false,
          __filename: false
      }
  };
  
  module.exports = (env, argv) => {
      return config;
  };