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