Thank you Jordy. Initially I copied woocommerce/assets/js/frontend/add-to-cart-variation.js
then unregistered the WooCommerce version and registered my version with the added the srcset modifications. Then I realized that I don’t want to check for changes every update, so I ended up with what is currently posted. To get it to work out of the box with WooCommerce I think they would need to load hidden images of all the product variations, then just display the selected variation. As it is now, the image attributes are just replaced.
I will post a new thread!