package.loaded invalidation during Lua 5.1 to 5.4 migration without downtime
The goal is to update module source in a running Lua 5.4 interpreter without stopping the process, by clearing entries in package.loaded and calling require again. The constraint is that Lua caches compiled modules in package.loaded , and removing an entry only forces the next require to re-execute the file. It does not invalidate closures, coroutines, or al