TypeScript Compiler Options

disableSizeLimit — TypeScript configuration

Active language-server setting that disables the source-size safeguard for large JavaScript projects. It is not a general Node heap limit or a compiler speed improvement. Prefer narrowing project scope before removing the safeguard. Tests verify configuration parsing only, not editor memory or large-project behavior. Baseline: TypeScript 5.8.3. File labels are explanatory, not source text.

Formal Syntax & Structure

typescript syntaxtypescript
"disableSizeLimit": true

Parameters & Attributes

NameTypeDescription
disableSizeLimitbooleanOptional configuration setting; see description for scope and limitations.

Working Example

Example Snippettypescript
// File: tsconfig.json (omit this label){  "compilerOptions": {    "target": "ES2022",    "module": "CommonJS",    "strict": true,    "types": [],    "skipLibCheck": true,    "outDir": "dist",    "noEmitOnError": true,    "disableSizeLimit": true  },  "files": [    "index.ts"  ]}// File: index.ts (omit this label)export const count: number = 7;// Run in a temporary project:// tsc -p . --showConfig
TypeScript Reference