I just took a moment to google how to build shielded EMP electronics, couldn't find much as Google just tries to sell me junk these days, but what I did find suggests when electronics are built to withstand EMP it's designed into the circuits from the get-go.
What is the range of a current ship...