TypeScript · Interop Constraints

preserveSymlinks

Disable resolving symlinks to their realpath. This correlates to the same flag in node.

Syntax
"preserveSymlinks": true

Example

Example
{
  "compilerOptions": {
    "preserveSymlinks": true
  }
}

More in this group

allowSyntheticDefaultImports erasableSyntaxOnly esModuleInterop forceConsistentCasingInFileNames isolatedDeclarations isolatedModules verbatimModuleSyntax

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course