-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathpackage.swcrc
44 lines (44 loc) · 917 Bytes
/
package.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
44
{
"$schema": "https://json.schemastore.org/swcrc",
"exclude": ["\\.(stories|test)\\.[jt]sx?$"],
"module": {
"type": "es6"
},
"jsc": {
"baseUrl": ".",
"paths": {
"components/*": ["./src/components/*"],
"helpers/*": ["./src/helpers/*"],
"hooks/*": ["./src/hooks/*"],
"icons/*": ["./src/icons/*"],
},
"externalHelpers": true,
"parser": {
"syntax": "typescript",
"tsx": true
},
"transform": {
"react": {
"runtime": "automatic"
}
},
"target": "es2015",
"experimental": {
"cacheRoot": "node_modules/.cache/swc",
"plugins": [
[
"swc-plugin-css-modules",
{
"generate_scoped_name": "tgui.[hash]",
}
],
[
"swc-plugin-transform-remove-imports",
{
"test": "\\.css$"
}
],
]
}
}
}