You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is actually really difficult because each namespace can have local declarations (variables, functions, ...). These names would need to be rewritten to avoid collisions. After all I don't think it's worth the effort.
You could try some minifiers on the generated file to get rid of the duplicate code.
I'm compiling my project to single output file using
outFile
option.TSC is generating overhead code as such:
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.
The text was updated successfully, but these errors were encountered: