Skip to content

Repeated conditional spreading of object literals results in OOM #40754

@amcasey

Description

@amcasey

TypeScript Version: nightly (fc03982)

Search Terms: spread, union, oom

Playground Link: link

Related Issues: #34853 addressed a related issue

An internal partner team is using this to conditionally override CSS properties (e.g. ...sizeLimited && { width: 100, height: 100 } and is seeing OOM crashes in tsc and poor editor responsiveness.

Metadata

Metadata

Assignees

Labels

Breaking ChangeWould introduce errors in existing codeCommittedThe team has roadmapped this issueDomain: PerformanceReports of unusually slow behaviorFix AvailableA PR has been opened for this issueSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions