In my experience, first-party JavaScript is more likely to be updated so rarely that bugs and exploits are more likely than supply chain attacks. If I heard about NPM getting attacked as often as I hear about CDNs getting attacked, I’d be more concerned.
I use uMatrix (uBlock’s big brother), so sites that do this generally lose first-party JS privileges real fast.