-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
27 lines (25 loc) · 1.07 KB
/
tsconfig.json
File metadata and controls
27 lines (25 loc) · 1.07 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
{
"compilerOptions": {
"lib": ["es2020"],
"outDir": "./lib",
"sourceMap": true,
"module": "ESNext", // normally it would be es6, but because of dynamic import it need to be something modern
"target": "es6",
"allowJs": true,
"moduleResolution": "bundler",
"paths": {
"*": ["./src/*"]
},
"types": ["@webgpu/types"], // added because of WebGPU types.
// Using "types" (not "typeRoots") so TS resolves the package directly via normal module resolution.
// This also avoids pulling in node_modules/@types/jsdom which throws issues during compilation in TS definition.
"skipLibCheck": false, // we need this to check out local .d.ts ambient definition for *.zig
// everything below is just suggested by https://www.npmjs.com/package/@tsconfig/recommended
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true
},
"$schema": "https://json.schemastore.org/tsconfig", // @tsconfig/recommended
"display": "Recommended", // @tsconfig/recommended
"exclude": ["src/suspended/**/*", "lib"]
}