I feel like this situation calls for making you a partner. If you are SO valuable the company can't even survive without you, then you ARE the company and should be treated as such.
I’m in this position now as the only developer in a successful company that has been operating in lean startup mode for years and every employee has become “irreplaceable” with no contingency plans. I brought partnership up with the owner and he wouldn’t consider it. It’s going to be rough For them when I leave and any “friendships” will definitely be erased.
As the company was clearly dying, a toxic environment was beginning to develop. Eventually, I just wanted out, regardless of the impact of my departure.