From 6b9db6b0870a138afb70c93534e601d4a336e763 Mon Sep 17 00:00:00 2001 From: Billy Janitsch Date: Wed, 27 Nov 2024 12:17:26 -0500 Subject: [PATCH] Fix tsconfig target resolution for ES2024 --- internal/resolver/tsconfig_json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/resolver/tsconfig_json.go b/internal/resolver/tsconfig_json.go index edfc7755cee..1f9063e58a9 100644 --- a/internal/resolver/tsconfig_json.go +++ b/internal/resolver/tsconfig_json.go @@ -221,7 +221,7 @@ func ParseTSConfigJSON( switch lowerValue { case "es3", "es5", "es6", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021": result.Settings.Target = config.TSTargetBelowES2022 - case "es2022", "es2023", "esnext": + case "es2022", "es2023", "es2024", "esnext": result.Settings.Target = config.TSTargetAtOrAboveES2022 default: ok = false