fix: fix jest breaking with new swc setting (#7149)
This commit is contained in:
parent
1291887049
commit
94015b279c
9
.swcrc
9
.swcrc
@ -1,10 +1,13 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/swcrc",
|
||||
// has to duplicate from package.json, see swc issue: https://swc.rs/docs/configuration/compilation#env
|
||||
"env": {
|
||||
"targets": "> 0.5%, not dead"
|
||||
},
|
||||
// this breaks jest because jest is setting target for some reason
|
||||
// "env": {
|
||||
// "targets": "> 0.5%, not dead"
|
||||
// },
|
||||
"jsc": {
|
||||
// without this swc breaks WalletConnect class super() call
|
||||
"target": "es2020",
|
||||
"keepClassNames": true,
|
||||
"experimental": {
|
||||
"plugins": [
|
||||
|
Loading…
Reference in New Issue
Block a user