From 237e71598d9ffc020f5302dba221cdd01b3046a8 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Thu, 10 Aug 2023 12:48:53 +0200 Subject: [PATCH] update .swcrc configuration The `env` and `jsc.target` combination isn't valid. Removing `env` works, but it introduces a lot of additional code that wasn't there before. I started by using es2015, es2016 and last but not least es2018. es2018 produces the most similar code compared to before. The main differences are: - Single vs double qoutes - Now we will have `catch (e) {}` instead of the more modern `catch {}` --- .swcrc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.swcrc b/.swcrc index 3e2821cdc..0dd828104 100644 --- a/.swcrc +++ b/.swcrc @@ -2,12 +2,8 @@ "module": { "type": "commonjs" }, - "env": { - "targets": { - "node": "12.13.0" - } - }, "jsc": { + "target": "es2018", "parser": { "syntax": "typescript", "tsx": false