If you were actually working at the startup, on its principal mission, then your problem would be more complex. Not only would you have to think about the appropriateness/advisability of the particular feature you're implementing, but you'd have to constantly evaluate it in light of your relationship with your SO and your prospects in the new company. It would be very difficult to separate these questions in your mind, so IMHO it's a good thing you don't have to.
Take care of yourself first, even if it means a slower launch for the startup! And it sounds like you have good coding practices and are well-regarded at your current position, so hopefully you could find another job that is more aligned with your values. Best of luck!