-
Notifications
You must be signed in to change notification settings - Fork 13k
Don’t emit file references that are already referenced via imports #56614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
function mapReferencesIntoArray(references: FileReference[], outputFilePath: string): (file: SourceFile) => void { | ||
return file => { | ||
if (exportedModulesFromDeclarationEmit?.includes(file.symbol)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not what this array was for, and the name confuses me (these aren’t exported from this file, they’re imported 🤔), but it appears to be exactly what I was going to add, so I opted not to duplicate it.
@typescript-bot perf test this |
Heya @andrewbranch, I've started to run the regular perf test suite on this PR at 1f470e7. You can monitor the build here. Update: The results are in! |
@andrewbranch Here they are:
CompilerComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
tsserverComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
StartupComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
Fixes:
from #56571 (comment)