Enchantments are a one-off thingy. They don’t require the enchanter to stay alive.
Otherwise, buying an enchanted sword from someone would mean, you would have to depend upon that person not getting killed by some random robber, when you are in the middle of battling the dungeon boss.
Your enchanted sword refuses to turn on without the bladesmith’s proprietary Dongle of Unlocking