-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.examples.browser.json
More file actions
29 lines (25 loc) · 1.13 KB
/
tsconfig.examples.browser.json
File metadata and controls
29 lines (25 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"compilerOptions": {
"target": "ES2024", // we can expect a modern version with WebGPU (but we want stablility, so not "esnext")
"lib": ["ES2024", "DOM", "DOM.Iterable"],
"types": ["@webgpu/types"],
"noEmit": true, // we don't transpile with tsgo/tsc, we just typecheck
/** convenient importing of .json and .js (unused at the moment) */
"resolveJsonModule": true,
"allowJs": true,
/** modules */
"module": "preserve", // import syntax passes through to bundler/node unchanged
"allowImportingTsExtensions": true,
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": true, // use `import type` for transpiler,
"isolatedModules": true, // disallow TS features that are difficult for transpilers
"skipLibCheck": true, // performance win, also what do we do if a library has an error?
"moduleDetection": "force", // always treat files as modules (not scripts)
/* strictness in TypeScript */
"strict": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"exclude": ["**/node_modules", "**/dist"],
"include": ["src", "*.ts"]
}