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.
TS is awful. The type gymnastics needed just to keep a linter happy in a moderately complex project is insane.
Please Login to reply.
I have so very poorly written is projects. We actually implemented TS because we got tired of not knowing the return type of anything. It's not perfect. But way better