“Kecualikan folder dari kompiler TypeScript tsconfig.json” Kode Jawaban

Kecualikan folder dari kompiler TypeScript tsconfig.json

{
  "compilerOptions": {
    ...
  },
  "exclude": ["node_modules", "**/node_modules/*"]
}
Jumping Boy

File TypeScript tsconfig.json

{
  "compilerOptions": {
    "module": "esnext",
    "target": "es2016",
    "jsx": "react-jsx",
    "strictFunctionTypes": true,
    "sourceMap": true,
    "outDir": "./build",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noFallthroughCasesInSwitch": true,
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true
  },
  "exclude": ["node_modules", "**/node_modules/*"],
  "include": ["src", "electron/renderer.ts"]
}

mussacharles60

Jawaban yang mirip dengan “Kecualikan folder dari kompiler TypeScript tsconfig.json”

Pertanyaan yang mirip dengan “Kecualikan folder dari kompiler TypeScript tsconfig.json”

Lebih banyak jawaban terkait untuk “Kecualikan folder dari kompiler TypeScript tsconfig.json” di TypeScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya