TSConfig文件详解02
编译器配置项分类
类型检查相关
allowUnreachableCode, allowUnusedLabels, alwaysStrict, exactOptionalPropertyTypes, noFallthroughCasesInSwitch, noImplicitAny, noImplicitOverride, noImplicitReturns, noImplicitThis, noPropertyAccessFromIndexSignature, noUncheckedIndexedAccess, noUnusedLocals, noUnusedParameters, strict, strictBindCallApply, strictFunctionTypes, strictNullChecks, strictPropertyInitialization and useUnknownInCatchVariables
模块相关
allowArbitraryExtensions, allowImportingTsExtensions, allowUmdGlobalAccess, baseUrl, customConditions, module, moduleResolution, moduleSuffixes, noResolve, paths, resolveJsonModule, resolvePackageJsonExports, resolvePackageJsonImports, rootDir, rootDirs, typeRoots and types
分发相关
declaration, declarationDir, declarationMap, downlevelIteration, emitBOM, emitDeclarationOnly, importHelpers, importsNotUsedAsValues, inlineSourceMap, inlineSources, mapRoot, newLine, noEmit, noEmitHelpers, noEmitOnError, outDir, outFile, preserveConstEnums, preserveValueImports, removeComments, sourceMap, sourceRoot and stripInternal
JavaScript支持相关
allowJs, checkJs and maxNodeModuleJsDepth
编辑器支持相关
disableSizeLimit and plugins
互操作约束相关
allowSyntheticDefaultImports, esModuleInterop, forceConsistentCasingInFileNames, isolatedModules, preserveSymlinks and verbatimModuleSyntax
向后兼容性相关
charset, keyofStringsOnly, noImplicitUseStrict, noStrictGenericChecks, out, suppressExcessPropertyErrors and suppressImplicitAnyIndexErrors
语言和运行环境相关
emitDecoratorMetadata, experimentalDecorators, jsx, jsxFactory, jsxFragmentFactory, jsxImportSource, lib, moduleDetection, noLib, reactNamespace, target and useDefineForClassFields
编译诊断相关
diagnostics, explainFiles, extendedDiagnostics, generateCpuProfile, listEmittedFiles, listFiles and traceResolution
工程相关
composite, disableReferencedProjectLoad, disableSolutionSearching, disableSourceOfProjectReferenceRedirect, incremental and tsBuildInfoFile
编译输出格式相关
noErrorTruncation, preserveWatchOutput and pretty
完整性相关
skipDefaultLibCheck and skipLibCheck
命令行相关
文件监控相关
assumeChangesOnlyAffectDirectDependencies
监控文件相关
配置项: watchOptions
watchFile, watchDirectory, fallbackPolling, synchronousWatchDirectory, excludeDirectories and excludeFiles
类型文件获取相关
enable, include, exclude and disableFilenameBasedTypeAcquisition
版权声明:
作者:congcong
链接:https://www.techfm.club/p/135982.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。
共有 0 条评论