forked from session-foundation/session-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.worker.config.js
More file actions
38 lines (37 loc) · 927 Bytes
/
utils.worker.config.js
File metadata and controls
38 lines (37 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// 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, 'app', 'ts', 'webworker', 'workers', 'node', 'util'),
},
target: 'node',
optimization: {
minimize: process.env.NODE_ENV === 'production',
},
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
watch: false, // false by default but can be overridden by the command line
watchOptions: {
aggregateTimeout: 200,
poll: 1000,
},
};