mirror of
https://github.com/notwa/mm
synced 2024-11-05 02:49:02 -08:00
9 lines
275 B
Lua
9 lines
275 B
Lua
_require = _require or require
|
|
return function(path)
|
|
if package and package.loaded and package.loaded[path] then
|
|
-- TODO: check if file is more recent using luanet hacks
|
|
package.loaded[path] = nil
|
|
end
|
|
-- TODO: pcall?
|
|
return _require(path)
|
|
end
|