My sense is the limit is more tied to the problem than the code base size. I work in some very large code bases, but it's not an issue because the nature of the problem (think what a standard SaaS would need).

On the other hand, I have a TS only project core is sub-20k LoC (NES harness), where it is struggling (for now, see other comments)