Skip to content

Overhead code generation for outFile #27679

@pankleks

Description

@pankleks

I'm compiling my project to single output file using outFile option.

TSC is generating overhead code as such:
image

This happens for every file of my solution -> in my case hundreds of small files which cause significant overhead in output file.

I believe this could be optimized by merging objects in same namespace.

Test solution:
testmerge.zip

TSC v: 3.1.1 but I believe it was like this since very beginning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions