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.
33 lines
537 B
33 lines
537 B
2 years ago
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
output: {
|
||
|
filename: 'worker.js',
|
||
|
path: 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
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
};
|