tsconfig.json

{
  "compilerOptions": {
    "Target": "es5", after the // build target
    "lib": [
      "Dom", // dom operating environment
      "Dom.iterable", // iterator operating environment
      "Esnext" // es6 converted into es5 environment
    ],
    "downlevelIteration": true,
    "AllowJs": true, // whether to allow the introduction of js file in ts
    "SkipLibCheck": true, // whether to skip checking declaration file
    "EsModuleInterop": true, // you can use es6 way to import node.js method
    "allowSyntheticDefaultImports": true,
    "Strict": true, // all syntax will be strict inspection
    "ForceConsistentCasingInFileNames": true, // file name is case sensitive
    "Module": "esnext", // modular standard
    "ModuleResolution": "node", // find the file in accordance with Rules node
    "ResolveJsonModule": true, // whether to allow the json file as a module to parse
    "IsolatedModules": true, // a module is required for each file
    "NoEmit": true, // no need to generate files
    "jsx": "react"
  },
  "include": [
    "Src" // handle files in the src directory
  ]
}

Guess you like

Origin www.cnblogs.com/CoderZX/p/11620100.html