{"compilerOptions": {//编译器选项"target": "esnext",//用来指定TS编译后的版本,esnext代表最新版本"module": "esnext",//指定要使用的模块化规范版本,如果设置了outFile,模块化就要设成system"strict": true,//所以严格检查的总开-关"jsx": "preserve","moduleResolution": "node","experimentalDecorators": true,"skipLibCheck": true,"esModuleInterop": true,"allowSyntheticDefaultImports": true,"forceConsistentCasingInFileNames": true,"useDefineForClassFields": true,"sourceMap": true,"baseUrl": ".","extends" :"",//定义被继承的配置文件"outDir": "./dist",//用来指定编译后的文件目录"outFile": "./dist/app.js",//设置全局作用域中的代码,合并到一个文件"allowJs":false,//是否编译JS,默认flase"checkJs":false,//是否检查JS是否语法合法,默认flase"removeComments":true,//是否移除注释"noEmit":true,//不生成注释后的文件"noEmitOnError":true,//当有错误不生成编译后的文件"alwaysStrict": false,//是否使用严格模式,默认false"noImplicitAny": true,//是否不允许隐式的any类型"noImplicitThis": true,//是否不允许不明确类型的this"strictNullChecks": true,//是否严格检查空值"types": ["webpack-env"],"paths": {"@/*": ["src/*"]},"lib": [//指定项目要用到的库"esnext","dom","dom.iterable","scripthost"]},/***表示任意目录*表示任意文件*/"include": [//指定哪些文件需要编译"src/**/*.ts","src/**/*.tsx","src/**/*.vue","tests/**/*.ts","tests/**/*.tsx"],"exclude": [//不编译哪些目录"node_modules"]}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号