What happens to pending H4 EAD extension if I file H1B transfer?

H1B transfer should not impact your spouse EAD application.

Nothing required for your spouse after you switch employer if H4 is valid for a longer period. You can apply for H4 extension and EAD within 180 days of expiry based on your I797 at that point in time.