-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
.swcrc
56 lines (56 loc) · 1.21 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
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"$schema": "https://json.schemastore.org/swcrc",
"module": {
"type": "commonjs"
},
"env": {
"targets": {
"node": "22"
}
},
"sourceMaps": true,
"jsc": {
"externalHelpers": false,
"loose": true,
"experimental": {
"plugins": [
["@swc/plugin-emotion", {}],
[
"@swc/plugin-transform-imports",
{
"@mui/material": {
"transform": "@mui/material/{{member}}"
},
"@mui/icons-material": {
"transform": "@mui/icons-material/{{member}}"
}
}
],
["@swc/plugin-loadable-components", {}]
]
},
"parser": {
"syntax": "typescript",
"tsx": true,
"decorators": true,
"dynamicImport": true
},
"transform": {
"decoratorMetadata": true,
"react": {
"runtime": "automatic",
"importSource": "@emotion/react"
}
},
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@/fixtures/*": ["cypress/fixtures/*"],
"@mui/material/css": ["src/swcWorkarounds/css"],
"@mui/material/styled": ["src/swcWorkarounds/styled"],
"@mui/material/keyframes": ["src/swcWorkarounds/keyframes"],
"@mui/material/useColorScheme": ["src/swcWorkarounds/useColorScheme"],
"@mui/material/useTheme": ["src/swcWorkarounds/useTheme"]
}
}
}