text: /* eslint-disable @typescript-eslint/no-var-requires */
  //@ts-check
  
  "use strict"
  
  // eslint-disable-next-line no-undef
  const path = require("path")
  
  /**@type {import("webpack").Configuration}*/
  const config = {
    target: "node",
    mode: "none",
  
    entry: "./src/extension.ts",
    output: {
      // eslint-disable-next-line no-undef
      path: path.resolve(__dirname, "dist"),
      filename: "extension.js",
      libraryTarget: "commonjs2"
    },
    devtool: "nosources-source-map",
    externals: {
      vscode: "commonjs vscode"
    },
    resolve: {
      extensions: [".ts", ".js"]
    },
    module: {
      rules: [
        {
          test: /\.ts$/,
          exclude: /node_modules/,
          use: [
            {
              loader: "ts-loader"
            }
          ]
        }
      ]
    }
  }
  // eslint-disable-next-line no-undef
  module.exports = config
  