MV Plugin stops working after a certain .js file size/length?

I was working on a plugin that added a lot of different functions to events, and today when my .js file reached ~730 lines of code (about 33kb) RPG Maker decided it doesn't like it anymore and basically acts as if it doesn't exist, and every one of the functions I wrote returns an error saying "is not a function".
When I move some of the code into a fresh new file though, it works just fine.

Is there a size limit for plugin files or something? I find it really odd seeing that some plugins have way more lines of code than mine. What could be the cause of this?
NVM, this can be closed. turns out I had a small error that somehow crashed the entire plugin

Original thread: https://forums.rpgmakerweb.com/threads/plugin-stops-working-after-a-certain-js-file-size-length.156903/