From a2b07e92d1b90bc88e3ac2eb07970e7da8b54766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ra=C4=8D=C3=A1k?= Date: Fri, 24 Jan 2025 09:43:45 +0100 Subject: [PATCH] Fix TypeError: X is not a constructor We get this with PointVector in wrangler. Potential root cause: https://github.com/microsoft/TypeScript/issues/51570 --- devTools/tsconfigs/tsconfig.base.json | 1 + 1 file changed, 1 insertion(+) diff --git a/devTools/tsconfigs/tsconfig.base.json b/devTools/tsconfigs/tsconfig.base.json index 262da9bbdc..b62d0aab2c 100644 --- a/devTools/tsconfigs/tsconfig.base.json +++ b/devTools/tsconfigs/tsconfig.base.json @@ -10,6 +10,7 @@ "declarationMap": true, "lib": ["dom", "dom.iterable", "es2020", "es2021", "es2022", "es2023"], + "target": "es2021", "alwaysStrict": true, "noImplicitReturns": true,