Skip to main content
InterviewHubPRO
Section Overview
Q34

Question 34 of 50

Part 3: Enterprise Architecture, Compiler Internals & Performance (Senior / Staff)

68%
TypeScript Master (50 Qs)•Part 3: Enterprise Architecture, Compiler Internals & Performance (Senior / Staff)

What are Project References and Composite Projects?

senior LevelFormsPerformanceSystem Design

In Simple Words: In a monorepo with 50 packages, running tsc across all 50 packages in a single run exhausts memory and takes minutes. Project References ("composite": true, "references": [{ "path": "../core" }]) allow tsc --build to compile sub-projects incrementally, rebuilding only packages whose source files changed and reusing cached .d.ts declarations.