mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-09 19:08:05 +01:00
27 lines
No EOL
430 B
JavaScript
27 lines
No EOL
430 B
JavaScript
const path = require('path');
|
|
|
|
const mode = process.env.NODE_ENV || 'production';
|
|
|
|
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,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
}; |