Skip to content

tsc instance reuse in composite project causes out of memory crash #31398

Closed
@leemhenson

Description

@leemhenson

TypeScript Version: 3.4.5
Search Terms: Composite, project references, out of memory

Expected behavior:
Building a large composite project where each component builds successfully should not run out of memory.

Actual behavior:
It looks like the same tsc instance is being used to compile each phase, and the memory grows until it trips the node memory limit. Would it instead make sense to fork off a new tsc process for each phase, or force some sort of garbage collection?

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions