How can you replace all the functions for a particular library in package.loaded
after a require
call?
I've tried to iterate over the relevant table but the table comes up empty.
local aLibrary = require "aLibrary"
for key,value in ipairs(package.loaded.aLibrary) do
package.loaded.aLibrary[key] = function() end
end