EMP weapons are directional, and thus aren't affected by the inverse square law. Further, the power that a ship can output can exceed what a drone could tolerate by many orders of magnitude. EMP weapons do not require an explosion.
You appear to be referring to some sort of jammer or directed energy weapon, not an "EMP" as the term is usually defined.