chore(TS): Create web tsconfig (#12381)

* fix(ts,connection) avoid mixing web and native code

* chore(ts) split config

The mobile part is still WIP.

* Remove default tsconfig

* Fix ts-loader - use web tsconfig

* Fix tsconfig

Use noEmit only on npm scripts (for type checking), but don't use it in webpack

* Fix

* Fix import

* Fix

Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
This commit is contained in:
Robert Pintilii
2022-10-18 19:21:48 +03:00
committed by GitHub
parent 30051d2b0e
commit 442ae6c3cb
28 changed files with 516 additions and 378 deletions

24
tsconfig.web.json Normal file
View File

@@ -0,0 +1,24 @@
{
"include": ["react/features/**/*.ts", "react/features/**/*.tsx", "./custom.d.ts", "./globals.d.ts"],
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"module": "es6",
"target": "es6",
"jsx": "react",
"lib": [ "webworker", "ES2020", "DOM" ],
"skipLibCheck": true,
"moduleResolution": "Node",
"strict": true,
"noImplicitAny": true,
"strictPropertyInitialization": false,
"resolveJsonModule": true,
"moduleSuffixes": [".web", ""]
},
"exclude": [
"node_modules",
"**/mobile/*",
"**/native/*",
"**/*.native.ts",
"**/*.native.tsx"
]
}