I feel your pain. I do not envy someone who has to enter the JS environment today if they have to set up a bunch of toolchains to get even the simplest thing working. Now it's gotten almost as bad as Java. Having said that, I don't have a better idea than the webpack/parcel folks, and don't have any interest in thinking up an idea. I just write off a day of a project getting things setup the way I want, including customizing the build process to scratch any itches I might have.
Yeah I can relate, it's good fun to setup toolchains (for a while).
I totally agree, there's probably not a better way. But this is a language level problem. Perhaps when chromium monopolies most of the web, this problem could come to decline.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.