mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
38 lines
727 B
JavaScript
38 lines
727 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './ts/webworker/workers/node/libsession/libsession.worker.ts',
|
|
node: {
|
|
__dirname: false,
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
{
|
|
test: /\.node$/,
|
|
loader: 'node-loader',
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['.ts', '.js'],
|
|
fallback: {
|
|
crypto: false,
|
|
path: false,
|
|
fs: false,
|
|
stream: false,
|
|
},
|
|
},
|
|
output: {
|
|
filename: 'libsession.worker.js',
|
|
path: path.resolve(__dirname, 'ts', 'webworker', 'workers', 'node', 'libsession'),
|
|
},
|
|
target: 'node',
|
|
optimization: {
|
|
minimize: true,
|
|
},
|
|
};
|