Files
Alex Orlenko 560a30ca02 Support new Luau require system
This commit introduces the `Require` trait that be used to change `require` behaviour.
By default mlua implements behaviour same as `ReplRequirer` in the original Luau.
Unfortunately binary Luau modules are no longer supported by the new system.
2025-04-25 14:19:41 +01:00

4 lines
179 B
Lua

local result1 = require("./dependency")
local result2 = require("./dependency")
assert(result1 == result2, "expect the same result when requiring the same module twice")
return {}