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",
|
"$schema": "https://json.schemastore.org/swcrc",
|
||||||
// has to duplicate from package.json, see swc issue: https://swc.rs/docs/configuration/compilation#env
|
// has to duplicate from package.json, see swc issue: https://swc.rs/docs/configuration/compilation#env
|
||||||
"env": {
|
// this breaks jest because jest is setting target for some reason
|
||||||
"targets": "> 0.5%, not dead"
|
// "env": {
|
||||||
},
|
// "targets": "> 0.5%, not dead"
|
||||||
|
// },
|
||||||
"jsc": {
|
"jsc": {
|
||||||
|
// without this swc breaks WalletConnect class super() call
|
||||||
|
"target": "es2020",
|
||||||
"keepClassNames": true,
|
"keepClassNames": true,
|
||||||
"experimental": {
|
"experimental": {
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
Loading…
Reference in New Issue
Block a user