You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
temptress-bot/webpack.config.js

32 lines
671 B

import { join } from 'path'
export default {
output: {
filename: 'worker.js',
path: join(__dirname, 'dist'),
},
mode: 'production',
resolve: {
extensions: ['.ts', '.tsx', '.js'],
plugins: [],
fallback: {
zlib: false,
https: false,
fs: false,
fastify: false,
express: false,
path: false,
},
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
options: {
transpileOnly: true,
},
},
],
},
}