I wonder if there would be any interest from folks for an alternative npm registry that would automatically cleanup dependency chains like this (among other things, possibly), remove polyfills etc.
I always thought about something like this, with on the fly manipulation of packages via SWC would be pretty fast I think