Here "Esau" represents the people of Edom. The Edomites were descendants of Esau. Alternate translation: "I will cause the people of Edom to experience disaster when I punish them" (See: [[rc://en/ta/man/jit/figs-metonymy]])
Yahweh is speaking to the people of Edom. This can be stated in second person. Alternate translation: "on you ... I punish you" (See: [[rc://en/ta/man/jit/figs-123person]])