From 94015b279cfcff13a80570e1779c0c9ad405be6d Mon Sep 17 00:00:00 2001 From: Nate Wienert Date: Fri, 11 Aug 2023 10:53:48 -1000 Subject: [PATCH] fix: fix jest breaking with new swc setting (#7149) --- .swcrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.swcrc b/.swcrc index 662423ad9b..c5e9a93cea 100644 --- a/.swcrc +++ b/.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": [