const path = require('path'); module.exports = { entry: { worker: './src/server.ts' }, output: { filename: '[name].js', path: path.join(__dirname, 'dist') }, mode: 'production', resolve: { extensions: ['.ts', '.tsx', '.js'], fallback: { util: false } }, plugins: [], optimization: { mangleExports: 'size' }, module: { rules: [ { test: /\.tsx?$/, loader: 'ts-loader', options: { transpileOnly: true } } ] } };