Every time I touch JS (and especially bundlers) I'm reminded of what an incredible pain in the ass the entire ecosystem is.
I'm never going to use a JS framework for a new project again. And while I'm at it, fuck it maybe I'll never use Typescript again either.
Either use an actually typed language (Rust), use something enjoyable (Ruby), or at a push, write some plain vanilla JS.