Files
element-call-Github/tsconfig.json
T
Timo K. 0475f2b2b0 cleanup widget sdk
- dont use the callViewModel anymore (bundle size 6 MB to 12 MB, and
   the entry from 2.1 MB to 1.1 MB)
 - better docs and readme information
2026-11-13 15:50:06 +01:00

67 lines
2.3 KiB
JSON

{
"compilerOptions": {
"target": "es2022",
"module": "es2022",
"jsx": "react-jsx",
"lib": ["es2024", "dom", "dom.iterable"],
"skipLibCheck": true,
// From Matrix-JS-SDK
"strict": true,
"noEmit": true,
"noEmitOnError": true,
"experimentalDecorators": false,
"esModuleInterop": true,
"noUnusedLocals": true,
"moduleResolution": "bundler",
"declaration": true,
"resolveJsonModule": true,
// Workaround for https://github.com/microsoft/TypeScript/issues/55132
"useDefineForClassFields": false,
"allowImportingTsExtensions": true,
"paths": {
// Element Call imports the SDK by its package name, so that the move to a
// published dependency changes nothing but this line (and the matching
// alias in vite.config.ts)
"@element-hq/matrixrtc-sdk": ["./sdk/index.ts"],
// These imports within @livekit/components-core and
// @livekit/components-react are broken under the "bundler" module
// resolution mode, so we need to resolve them manually
"livekit-client/dist/src/room/types": [
"./node_modules/livekit-client/dist/src/room/types.d.ts"
],
"livekit-client/dist/src/room/Room": [
"./node_modules/livekit-client/dist/src/room/Room.d.ts"
],
"livekit-client/dist/src/room/track/TrackPublication": [
"./node_modules/livekit-client/dist/src/room/track/TrackPublication.d.ts"
],
"livekit-client/dist/src/room/participant/Participant": [
"./node_modules/livekit-client/dist/src/room/participant/Participant.d.ts"
],
"livekit-client/dist/src/proto/livekit_models_pb": [
"./node_modules/@livekit/protocol/src/gen/livekit_models_pb.d.ts"
]
}
// TODO: Enable the following options later.
// "forceConsistentCasingInFileNames": true,
// "noFallthroughCasesInSwitch": true,
// "noImplicitOverride": true,
// "noImplicitReturns": true,
// "noPropertyAccessFromIndexSignature": true,
// "noUncheckedIndexedAccess": true,
// "noUnusedParameters": true,
},
"include": [
"./src/**/*.ts",
"./src/**/*.tsx",
"./playwright/**/*.ts",
"./sdk/**/*.ts",
"./widget-rtc-sdk/**/*.ts",
"./component/**/*.ts",
"./component/**/*.tsx"
],
"exclude": ["**.test.ts"]
}