text: const webpack = require('webpack');
  const nodeExternals = require('webpack-node-externals');
  
  module.exports = {
    target: 'node',
    devtool: 'inline-source-map',
    mode: 'development',
    externals: [nodeExternals()],
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          use: 'ts-loader',
          exclude: /node_modules/
        },
        {
          test: /\.jsx?$/,
          include: __dirname,
          exclude: /node_modules/,
          use: {
            loader: 'babel-loader'
          }
        }
      ]
    },
    plugins: [
      new webpack.BannerPlugin({ banner: 'require("source-map-support").install();', raw: true, entryOnly: false })
    ],
    resolve: {
      modules: ['node_modules', __dirname],
      extensions: ['.tsx', '.ts', '.js', '.jsx']
    }
  };
  