-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Too large modules #45005
Comments
The file is this large because it's faster to have more functions in the same closure when sharing state. |
But 42,797 lines are insane!
Can you reopen the issue? Or Creating a new issue for the solutions would be better? |
We (the engineers on this team) all work in this file every day. If it were truly a problem that needed solving through some complex external tooling, we would have done it by now. It's not. The prioritization of our finite resources is not going to hinge on your personal distaste of a line count. |
Suggestion
Some modules are too large.
For example, src/compiler/checker.ts has 42,797 lines, in one single file.
(Some other modules have a few thousand lines, though that MAY be viewed as suitable in some cases. )
I think that's too much and not so easy to organize and grasp, especially for contributors.
Even several IDE(e.g. vscode) extensions don't properly work for it.
Thus I suggest splitting the logic into more files.
🔍 Search Terms
large file
large module
big file
big module
long file
long module
✅ Viability Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: