The web bundles are about to be compiled file by file (ts-loader in transpile-only mode), where TypeScript cannot see across files. This flag makes `tsc` reject the few constructs that would silently misbehave under that mode, such as referencing an ambient const enum or re-exporting a type without `export type`, so the type check guarantees the code is safe to transpile in isolation. The project already passes with it enabled.
30 lines
849 B
JSON
30 lines
849 B
JSON
{
|
|
"include": ["react/features/**/*.ts", "react/features/**/*.tsx", "./custom.d.ts", "./globals.d.ts"],
|
|
"compilerOptions": {
|
|
"allowSyntheticDefaultImports": true,
|
|
"module": "es2020",
|
|
"target": "es2024",
|
|
"jsx": "react",
|
|
"lib": [ "ES2024", "DOM" ],
|
|
"skipLibCheck": true,
|
|
"moduleResolution": "Bundler",
|
|
"isolatedModules": true,
|
|
"strict": true,
|
|
"noImplicitAny": true,
|
|
"noImplicitOverride": true,
|
|
"strictPropertyInitialization": false,
|
|
"resolveJsonModule": true,
|
|
"moduleSuffixes": [".web", ""]
|
|
},
|
|
"exclude": [
|
|
"node_modules",
|
|
"react/features/share-room",
|
|
"**/mobile/*",
|
|
"**/native/*",
|
|
"**/*.native.ts",
|
|
"**/*.native.tsx",
|
|
"**/*.ios.ts",
|
|
"**/*.android.ts"
|
|
]
|
|
}
|