Skip to content

Commit 2ed8ace

Browse files
committed
Update tsconfig.json
1 parent c77dfa8 commit 2ed8ace

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

tsconfig.json

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
11
{
22
"compilerOptions": {
3-
// It very notable slow-downs the object instancing for the "target" is less than "ES2022" if is set to `true`.
4-
"useDefineForClassFields": false,
5-
"allowJs": true,
6-
73
"target": "ES2020",
8-
"module": "ES2020",
9-
"moduleResolution": "bundler",
10-
"esModuleInterop": true,
4+
"lib": ["ES2021", "DOM", "DOM.Iterable"],
115

12-
"strictNullChecks": true,
13-
"strictPropertyInitialization": true,
6+
/* Bundler preset */
7+
"module": "ESNext",
8+
"moduleResolution": "Bundler",
9+
"noEmit": true,
10+
// "allowImportingTsExtensions": true,
11+
12+
"useDefineForClassFields": false,
13+
"resolveJsonModule": true,
14+
"isolatedModules": true,
15+
"esModuleInterop": true,
16+
"skipLibCheck": true,
17+
"allowJs": false,
18+
19+
"strict": true,
20+
"strictNullChecks": true,
1421
"strictFunctionTypes": true,
1522
"strictBindCallApply": true,
16-
"alwaysStrict": true,
17-
"noImplicitAny": true,
18-
"noImplicitThis": true,
23+
"strictPropertyInitialization": true,
24+
"noFallthroughCasesInSwitch": true,
25+
"alwaysStrict": true,
26+
"noImplicitAny": true,
27+
"noImplicitThis": true
1928
}
2029
}
30+
31+
// Note:
32+
// `useDefineForClassFields` very notable slow-downs the object instancing
33+
// for the "target" is less than "ES2022" if is set to `true`.

0 commit comments

Comments
 (0)