-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebpack.config.js
More file actions
executable file
·76 lines (75 loc) · 1.91 KB
/
webpack.config.js
File metadata and controls
executable file
·76 lines (75 loc) · 1.91 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { resolve } from "node:path";
import * as url from "node:url";
const __dirname = url.fileURLToPath(new URL("..", import.meta.url));
export default {
name: "agent",
entry: {
script: "./agent/script.ts",
justdump: "./agent/justdump.ts",
justcocos: "./agent/justcocos.ts",
justcli: "./agent/justcli.ts",
justcloak: "./agent/justcloak.ts",
libreveny: "./agent/libreveny.so.ts",
},
output: {
filename: "[name].js",
path: resolve("./agent/dist"),
assetModuleFilename: "clang/[hash][ext]",
},
module: {
rules: [
{
test: /\.ts$/,
use: "ts-loader",
exclude: /node_modules/,
},
{
test: /\.c$/,
type: "asset",
parser: {
dataUrlCondition: {
maxSize: 100 * 1024,
},
},
},
],
},
resolve: {
extensions: [".ts", ".js"],
alias: {
"@src": "../src/",
},
fallback: {
assert: "@frida/assert",
"base64-js": "@frida/base64-js",
buffer: "@frida/buffer",
crosspath: "@frida/crosspath",
crypto: "@frida/crypto",
diagnostics_channel: "@frida/diagnostics_channel",
events: "@frida/events",
http: "@frida/http",
"http-parser-js": "@frida/http-parser-js",
https: "@frida/https",
ieee754: "@frida/ieee754",
net: "@frida/net",
os: "@frida/os",
path: "@frida/path",
process: "@frida/process",
punycode: "@frida/punycode",
querystring: "@frida/querystring",
"readable-stream": "@frida/readable-stream",
"reserved-words": "@frida/reserved-words",
stream: "@frida/stream",
string_decoder: "@frida/string_decoder",
terser: "@frida/terser",
timers: "@frida/timers",
tty: "@frida/tty",
url: "@frida/url",
util: "@frida/util",
vm: "@frida/vm",
fs: "frida-fs",
},
},
mode: "development",
devtool: "inline-source-map",
};