Skip to content

Commit 0341b94

Browse files
committed
correctly handle module that only set package.loaded
1 parent f47c102 commit 0341b94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

require.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ local function require52 (name)
9191
module = res
9292
elseif not p_loaded[name] then
9393
module = true
94+
else
95+
module = p_loaded[name]
9496
end
9597

9698
p_loaded[name] = module

0 commit comments

Comments
 (0)