Is it to whoever or to whomever?

If the pronoun is functioning as the subject, meaning it is performing the verb, use “to whoever” (e.g., “to whoever enjoys”).

If the pronoun is functioning as the object, meaning it is the recipient of the verb or the object of the preposition, use “to whomever” (e.g., “to whomever I see”).