|
1 | 1 | { |
2 | 2 | "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 | | - |
7 | 3 | "target": "ES2020", |
8 | | - "module": "ES2020", |
9 | | - "moduleResolution": "bundler", |
10 | | - "esModuleInterop": true, |
| 4 | + "lib": ["ES2021", "DOM", "DOM.Iterable"], |
11 | 5 |
|
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, |
14 | 21 | "strictFunctionTypes": true, |
15 | 22 | "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 |
19 | 28 | } |
20 | 29 | } |
| 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