text: const path = require('path');
  const nodeExternals = require('webpack-node-externals');
  
  module.exports = {
      entry: './src/index.ts',
      mode: 'production',
      target: 'node',
      module: {
          rules: [
              {
                  test: /\.tsx?$/,
                  use: 'ts-loader',
                  exclude: /node_modules/,
              },
          ],
      },
      resolve: {
          extensions: ['.tsx', '.ts', '.js', '.json'],
          modules: ["node_modules"]
      },
      output: {
          filename: 'index.js',
          path: path.resolve(__dirname, 'dist'),
          libraryTarget : 'commonjs2'
      },
      performance: {
          maxEntrypointSize: 5120000,
          maxAssetSize: 5120000
      },
      externals: [nodeExternals()]
  };
  