You can take the opportunity to also update featureB. It's simpler.
git rebase main featureA; git rebase featureA featureB
.