mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
560a30ca02
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.
4 lines
179 B
Lua
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 {} |