mm
This commit is contained in:
16
templates/vite-react-app/tsconfig.json
Normal file
16
templates/vite-react-app/tsconfig.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
// 此文件仅用于类型检查,不用于构建,构建时会指定使用 tsconfig.build.json
|
||||
"extends": "./tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
// node api 使用最新版本号的 "ESxxxx",browser api 使用 "DOM" 和 "DOM.Iterable"
|
||||
"lib": ["ES2025", "DOM", "DOM.Iterable"],
|
||||
|
||||
//显式声明使用的类型包,避免找不到模块
|
||||
"types": ["node", "react"],
|
||||
|
||||
// React JSX 编译模式
|
||||
"jsx": "react-jsx"
|
||||
},
|
||||
// 将类型检查范围扩大至整个子项目,而不只是 src 文件夹,
|
||||
"include": ["**/*"]
|
||||
}
|
||||
Reference in New Issue
Block a user