fxtwitter-docker/webpack.config.js
2022-07-13 19:59:00 -04:00

31 lines
529 B
JavaScript

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,
},
},
],
},
};