text: const path = require('path');
  const nodeExternals = require('webpack-node-externals');
  
  module.exports = {
    target: 'node',
    entry: './src/app.ts',
    devtool: 'source-map',
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          use: 'ts-loader',
          exclude: /node_modules/,
        },
      ],
    },
    resolve: {
      extensions: ['.tsx', '.ts', '.js'],
    },
    output: {
      filename: 'app.js',
      path: path.resolve(__dirname, 'dist'),
    },
    externals: [nodeExternals()],
  };
  