Look into stoicism. Everything you are describing is core to the dichotomy of control: “The chief task in life is simply this: to identify and separate matters so that I can say clearly to myself which are externals not under my control, and which have to do with the choices I actually control. Where then do I look for good and evil? Not to uncontrollable externals, but within myself to the choices that are my own...…
The practical problem with the boiled down stoic approach is that in modern life almost nothing falls firmly and clearly into one of those two categories. In OPs situation for example, webpack problems aren't under their control. But whether they use webpack, to some possibly very small extent, is. So now OP has the choice of whether to _consider_ it under their control, and push for a different tool that might make…
You won't be able to solve world hunger by yourself. But you can help by donating a meal today.
You won't be able to solve obscure webpack problems by yourself. But you can report an issue with a reproduction to the maintainers today.
It's all about perspective. If it doesn't help you, that's okay. Maybe it will help someone else like it helped me throughout my career.