当前位置:网站首页>tsconfig. Role of JSON file
tsconfig. Role of JSON file
2022-07-22 11:25:00 【To be a woman of light】
The main role :
General documents include us ts Code time , It will have such a file , This ts.json File is ts A profile for ,
We need to know this first ts The document will eventually be transferred to us js Of documents .
The transformation process :
1. First pair ts Make a compilation of the code , See if there is any problem with the basic grammar
2. If the basic grammar is ok , Making a transformation
3. After transformation, we get our js file
// Compilation options
"compilerOptions": {
` Insert a code chip here `
// Object code (ts-->js(es6/6/7)
"target": "esnext",
// The modularity scheme that the object code needs to use (commonjs require/module.export),umd Will support a variety of modularity
"module": "esnext",
// Strict mode , Strict inspection
"strict": true,
// Do you want to be right jsx How to deal with
"jsx": "preserve",
// according to node To parse the module import"/index.node"
"moduleResolution": "node",
// Skip type detection of the entire library
"skipLibCheck": true,
// export default/module.export={} Can it be mixed
// es module and commonjs
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"useDefineForClassFields": true,
// Do you want to generate a mapping file (ts-->js)
"sourceMap": true,
// When parsing the file path , basic url
"baseUrl": ".",
// Specify the type to be resolved
"types": ["webpack-env"],
// Compile time path resolution ( Similar to webpack alias)
"paths": {
"@/*": ["src/*"],
"components/*":["src/components/*"]
},
// You can specify which library types can be used in the project
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx"
],
"exclude": ["node_modules"]
边栏推荐
- Download datasets using kaggle's API
- (HR面试)最常见的面试问题和技巧性答复
- 删除文件夹中的相邻但名称不同的文件 && 适应于神经网络训练时的标签名称和图像名称相对应的情况
- :empty伪类代替js,实现为空时的提示
- 即看即用 && Reduction Ops && Pytorch官方文档总结 && 笔记 (五)
- Introduction to nodes
- Is it safe to open an account on tonghuashun online? How to buy national debt reverse repurchase
- (pc+wap) dream weaving template protective mask website
- Restful URL design specification
- 基于torchvision对模型最后几层进行微调,用于训练自己的数据
猜你喜欢
grafana 监控 node
Intel E3 V1 V2 V3 CPU parameters
深度剖析问题:Could not run ‘torchvision::nms‘ with arguments from the ‘CUDA‘ backend.
Creation and call of stored procedure based on Oracle Database
Data transfer principle between TX2 video memory and memory
Android 面试题:说一下 PendingIntent 和 Intent 的区别
LeetCode刷题--点滴记录020
向量化引擎对HTAP的价值与技术思考
LeetCode刷题--点滴记录021
I wipe the "hidden rules" in the interview of those testers. Don't step on the pit
随机推荐
Start jar package shell script
Illustrate the beginning of NLP transfer learning by Bert, Elmo, etc
Data analysis from 0 to 1 --- numpy articles
ICML 2022 lottery! Fudan University, Shanghai Jiaotong University and Xiamen University were selected for outstanding papers
BGP-边界网关协议
(PC+WAP)织梦模板防护口罩类网站
About BOM update of SAP apo rpmcall specified production order
美参议院初步通过520亿美元「芯片法案」,她竟乘机「投资炒股」!
文件夹下搜索匹配文件或目录 glob()
Dokcer running Nacos container automatic exit problem
《Multiple UAV exploration of an unknown region》翻译
ICML 2022开奖!复旦、上交、厦大多篇工作入选杰出论文
B2B企业数字化转型,CIO如何避免踩坑
(HR面试)最常见的面试问题和技巧性答复
软件测试工程师 | 不拼学历,还能进大厂吗?
The air conditioner in no man's land has poor refrigeration
面试突击67:说一下 TCP/IP 协议?以及每层的作用?
标签平滑(LabelSmoothing)介绍与代码实现
Network security competition C module batch value taking script
grafana 监控 node