There are ways to improve JS for sure, especially consolidating the modules standard.
Vite is doing a good job, it used to be much worse. But by the nature of it, it will never be as streamlined as go for example. Too many people have different opinions on what JS should be used for and how nowadays