Update TypeScript target to match matrix-js-sdk

And work around https://github.com/microsoft/TypeScript/issues/55132
This commit is contained in:
Robin 2024-07-24 11:07:46 -04:00
parent 17adfc5777
commit 3be3a32f3d

View File

@ -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