text: const path = require('path')
  const webpack = require('webpack')
  
  module.exports = {
    entry: './src/index.ts',
    output: {
      filename: 'worker.js',
      path: path.join(__dirname, 'dist'),
    },
    devtool: 'cheap-module-source-map',
    mode: 'development',
    resolve: {
      extensions: ['.ts', '.tsx', '.js'],
    },
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          loader: 'ts-loader',
        },
      ],
    },
    plugins: [
      new webpack.DefinePlugin({
        LOCAL: process.env['LOCAL'],
      }),
    ],
  }
  