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
96 B
Lua
4 lines
96 B
Lua
local result = require("./dependency")
|
|
result[#result+1] = "required into module"
|
|
return result
|