From dd4c04ed56a7b3cb1d00245669820c467cd5d8fd Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Sun, 7 Nov 2021 13:33:43 -0500 Subject: [PATCH] fix (#1540) --- src/transpilers/swc.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transpilers/swc.ts b/src/transpilers/swc.ts index ed837dae2..3111bfc16 100644 --- a/src/transpilers/swc.ts +++ b/src/transpilers/swc.ts @@ -164,6 +164,7 @@ targetMapping.set(/* ts.ScriptTarget.ES2018 */ 5, 'es2018'); targetMapping.set(/* ts.ScriptTarget.ES2019 */ 6, 'es2019'); targetMapping.set(/* ts.ScriptTarget.ES2020 */ 7, 'es2020'); targetMapping.set(/* ts.ScriptTarget.ES2021 */ 8, 'es2021'); +targetMapping.set(/* ts.ScriptTarget.ES2022 */ 9, 'es2022'); targetMapping.set(/* ts.ScriptTarget.ESNext */ 99, 'es2022'); type SwcTarget = typeof swcTargets[number];