The plagues and the drowning of the Egyptians were designed to showcase YHWH’s power throughout the world (Exodus 9:16). Both the Wisdom of Solomon (1st cent. C.E.) and Mekhilta (2nd cent. C.E.) develop systematic interpretations of the plagues, showing how the details were measure-for-measure punishments, they differ on the meaning of the lesson when it comes to non-Jews.