-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
32 lines (32 loc) · 1.21 KB
/
tsconfig.json
File metadata and controls
32 lines (32 loc) · 1.21 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
30
31
32
{
"compilerOptions": {
"target": "es2021", // goal: ship *the most modern syntax* that is supported by *all* browsers that support our Wasm
"module": "nodenext", // allow top-level await
"lib": [
"dom",
"esnext"
],
"outDir": "./build",
"rootDir": ".",
"strict": true,
"strictPropertyInitialization": false, // to enable generic constructors, e.g. on CircuitValue
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"moduleResolution": "nodenext", // comply with node + "type": "module"
"experimentalDecorators": true, // needed for decorators used in o1js
"emitDecoratorMetadata": true, // needed for decorators used in o1js
"allowJs": true, // to use JSDoc in some places where TS would be too cumbersome
"declaration": true,
"sourceMap": true,
"noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": true,
"useDefineForClassFields": false, // ensure correct behaviour of class fields with decorators
"importHelpers": true, // bundle optimization to reduce size
"baseUrl": ".", // base directory for module resolution
"isolatedModules": true
},
"include": [
"./src"
]
}