Hi nctl
You use "whoever" after a preposition if "whoever" is the subject of the verb following it; you use "whomever" after a preposition if it is the object of the verb.
In your case "whoever" is the subject of "is working": so "to whoever" is correct.
Many people, of course, never use "whomever"
