Hi Sukhi, sorry to hear this has been such a struggle. this sounds very frustrating, for sure.
So the issue with editing the files directly on github is that we have no way of knowing whether or not this is actually a netlify issue or not. By running things locally and ensuring that they work first before deploying, you have “control group” if you will.
I think your best bet is to delete the file (for now) and try and get it working, and then we can see about adding more files? will you try that and see how it goes?
I am not a webpack expert so i can’t help you with that part, but i strongly recommend you have a working webpack config so you can test locally before you push.