roles-bot/webpack.config.js

27 lines
477 B
JavaScript
Raw Normal View History

2022-01-02 18:49:09 +01:00
const path = require('path');
2021-12-21 12:55:10 +01:00
2022-01-02 18:49:09 +01:00
const mode = process.env.NODE_ENV || 'production';
2021-12-21 12:55:10 +01:00
module.exports = {
output: {
filename: `worker.${mode}.js`,
path: path.join(__dirname, 'dist'),
},
mode,
resolve: {
extensions: ['.ts', '.tsx', '.js'],
plugins: [],
fallback: { util: false }
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
options: {
transpileOnly: true,
},
},
],
},
}