I'm not even a JS dev, I support the CI pipelines and Docker images and whatnot. It's something else every week. When I get it to work eventually, it's brittle as hell. I just want the madness to stop. I don't even care any more.
Didn't have to touch the webpack stuff either. Perhaps the issues you're having are due to something else?
Why should it even be your problem.