2023-08-08 20:38:37 +03:00
|
|
|
{
|
|
|
|
"$schema": "https://json.schemastore.org/swcrc",
|
2023-08-11 20:57:55 +03:00
|
|
|
// has to duplicate from package.json, see swc issue: https://swc.rs/docs/configuration/compilation#env
|
2023-08-11 23:53:48 +03:00
|
|
|
// this breaks jest because jest is setting target for some reason
|
|
|
|
// "env": {
|
|
|
|
// "targets": "> 0.5%, not dead"
|
|
|
|
// },
|
2023-08-08 20:38:37 +03:00
|
|
|
"jsc": {
|
2023-08-11 23:53:48 +03:00
|
|
|
// without this swc breaks WalletConnect class super() call
|
|
|
|
"target": "es2020",
|
2023-08-08 20:38:37 +03:00
|
|
|
"keepClassNames": true,
|
|
|
|
"experimental": {
|
|
|
|
"plugins": [
|
|
|
|
[
|
|
|
|
"@lingui/swc-plugin",
|
|
|
|
{}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"@swc/plugin-styled-components",
|
|
|
|
{
|
|
|
|
"displayName": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"parser": {
|
|
|
|
"syntax": "typescript",
|
|
|
|
"tsx": true
|
|
|
|
},
|
|
|
|
"transform": {
|
|
|
|
"react": {
|
|
|
|
"runtime": "automatic"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|