From 7f99bfcd2a6f8c6ce2c7e46abfd4f6978e01c254 Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Sun, 7 Nov 2021 13:20:25 -0500 Subject: [PATCH] fix --- 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];