-
Notifications
You must be signed in to change notification settings - Fork 4
/
.swcrc
43 lines (43 loc) · 1.07 KB
/
.swcrc
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
{
"$schema": "https://json.schemastore.org/swcrc",
"module": {
"type": "commonjs"
},
"jsc": {
"externalHelpers": false,
"parser": {
"syntax": "typescript",
"tsx": true,
"decorators": true,
"dynamicImport": false
},
"target": "es2022",
"minify": {
"compress": {
"booleans_as_integers": true,
"dead_code": true,
"unused": true,
"ecma": "2022",
"reduce_vars": true,
"reduce_funcs": true,
"keep_classnames": true,
"keep_fargs": false,
"keep_fnames": true
},
"mangle": {
"keepClassNames": true,
"keepFnNames": true,
"keepPrivateProps": true
}
},
"transform": {
"react": {
"useBuiltins": true
}
},
"baseUrl": "src",
"paths": {
"@/*": ["*"]
}
}
}