text: const path = require('path');
  
  module.exports = {
      entry: {
          'bundle': './src/main.ts',
      },
      module: {
          rules: [
              {
                  test: /\.ts/,
                  use: [
                      {
                          loader: 'ts-loader',
                          options: {
                              transpileOnly: true,
                              experimentalWatchApi: true,
                          },
                      },
                  ],
                  exclude: /node_modules/,
              },
              {
                  test: /\.js$/,
                  enforce: 'pre',
                  use: ['source-map-loader'],
              },
          ],
      },
      resolve: {
          extensions: ['.ts', '.js'],
      },
      output: {
          filename: '[name].js',
          path: path.resolve(__dirname, 'public'),
      },
  };