2023-07-26 11:26:46 +02:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
2022-12-08 23:47:49 +01:00
|
|
|
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: {
|
2022-12-19 08:58:55 +01:00
|
|
|
crypto: false,
|
|
|
|
path: false,
|
2022-12-08 23:47:49 +01:00
|
|
|
fs: false,
|
2022-12-19 08:58:55 +01:00
|
|
|
stream: false,
|
2022-12-08 23:47:49 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
filename: 'util.worker.js',
|
|
|
|
path: path.resolve(__dirname, 'ts', 'webworker', 'workers', 'node', 'util'),
|
|
|
|
},
|
2022-12-19 08:58:55 +01:00
|
|
|
target: 'node',
|
2023-01-10 07:24:56 +01:00
|
|
|
optimization: {
|
2023-05-26 02:34:24 +02:00
|
|
|
minimize: true,
|
2023-01-10 07:24:56 +01:00
|
|
|
},
|
2022-12-08 23:47:49 +01:00
|
|
|
};
|