If all you want is defense against an enemy deploying an airfield (aka aircraft carrier) close to your border, I think you could build thousands of them for the price of an aircraft carrier.
A bit like a minefield with mines that can target ships passing by.
An attacker would have to use mine sweepers to destroy them, protecting them with their carrier further out, but, these things being mobile, you could keep replacing them. Not invincible, but I think it is something planners are looking at.