You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/utils.worker.config.js

33 lines
665 B
JavaScript

// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
module.exports = {
entry: './ts/webworker/workers/node/util/util.worker.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.ts', '.js'],
fallback: {
crypto: false,
path: false,
fs: false,
stream: false,
},
},
output: {
filename: 'util.worker.compiled.js',
path: path.resolve(__dirname, 'ts', 'webworker', 'workers', 'node', 'util'),
},
target: 'node',
optimization: {
minimize: true,
},
};