34 lines
705 B
JSON
34 lines
705 B
JSON
{
|
||
"compilerOptions": {
|
||
"baseUrl": ".",
|
||
"paths": {
|
||
"@/*": [
|
||
"src/*"
|
||
],
|
||
"@@/*": [
|
||
"core/*"
|
||
]
|
||
},
|
||
"target": "es2016",
|
||
"esModuleInterop": true,
|
||
"module": "commonjs",
|
||
"experimentalDecorators": true,
|
||
"resolveJsonModule": true, // 引入json
|
||
"forceConsistentCasingInFileNames": true,
|
||
"strict": true,
|
||
"skipLibCheck": true,
|
||
"typeRoots": [
|
||
"./typings/*.d.ts",
|
||
"node_modules/@types"
|
||
],
|
||
"jsx": "react-jsx" // 这里改成react-jsx,就不需要在tsx文件中手动引入React了
|
||
},
|
||
"include": [
|
||
"./src",
|
||
"./core",
|
||
"./scripts",
|
||
"./typings/*.d.ts",
|
||
"interfaces",
|
||
"index.tsx"
|
||
]
|
||
} |