From 3be3a32f3ddafd35ec85e4a583bccec91fe99e62 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 24 Jul 2024 11:07:46 -0400 Subject: [PATCH] Update TypeScript target to match matrix-js-sdk And work around https://github.com/microsoft/TypeScript/issues/55132 --- tsconfig.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index b709740e..099a2ef1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,9 @@ { "compilerOptions": { - "target": "es2016", + "target": "es2022", "module": "es2020", "jsx": "react-jsx", - "lib": ["es2020", "dom", "dom.iterable"], + "lib": ["es2022", "dom", "dom.iterable"], // From Matrix-JS-SDK "strict": true, @@ -15,6 +15,8 @@ "moduleResolution": "bundler", "declaration": true, "resolveJsonModule": true, + // Workaround for https://github.com/microsoft/TypeScript/issues/55132 + "useDefineForClassFields": false, "paths": { // These imports within @livekit/components-core and // @livekit/components-react are broken under the "bundler" module