This commit is contained in:
王红彬
2024-09-06 11:14:28 +08:00
commit 19fcb7963a
18 changed files with 1221 additions and 0 deletions

47
tsconfig.json Normal file
View File

@@ -0,0 +1,47 @@
{
"files": [],
"references": [
/* Bundler mode */
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.node.json"
}
]
}
/*
### 1 (`tsconfig.node.json`):
1. **`target`: `ES2022`**
- ES2022使 ES2022 Node.js ES2022
2. **`lib`: `["ES2023"]`**
- 使 ES2023 JavaScript API
3. **`include`: `["vite.config.ts"]`**
- `vite.config.ts` Vite TypeScript
### 2 (`tsconfig.app.json`):
1. **`target`: `ES2020`**
- ES2020广
2. **`lib`: `["ES2020", "DOM", "DOM.Iterable"]`**
- ES2020 DOM DOM.Iterable使 Vue.jsReact DOM API
3. **`include`: `["src/*\*\/ *.ts", "src/*\*\/*.tsx", "src/*\*\/*.vue"]`**
- TypeScriptTSX Vue TypeScript
###
- **`jsx: "preserve"`**: `jsx` `preserve` React JSX 便 Babel
### 使
- ** 1** (`tsconfig.node.json`):
- Node.js Vite
- ** 2** (`tsconfig.app.json`):
- API JSX Web
TypeScript
*/