On my systems it runs at 2.8k LOC per second. So 10k LOC would take 3.6s
If you have 10k LOC in a single file, you have bigger problems to worry about
Can you elaborate on what problems that would cause ?
10k LOC may be a bit extreme. Although having everything in the same place makes it easier to refactor and maintain. Breaking something up adds complexity, and is especially bad if it entangles itself with other parts of the code-base.
I'll take one well structured file over 10k files with circular dependencies. If something can be lifted out into a library, of course you should do so, but breaking something for it's own sake is bad. For example include files within include files. Or include files disguised as modules.
Javascript modules were created for this purpose only. Have them as separate files while developing, have it readable and then you can always bundle them in a single file while deploying