mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
Rewrite Luau require function to support module loaders.
Also add `package` library with `path`/`loaded`/`loaders`.
This commit is contained in:
+1
-1
@@ -438,7 +438,7 @@ impl Lua {
|
||||
}
|
||||
|
||||
#[cfg(feature = "luau")]
|
||||
mlua_expect!(lua.prepare_luau_state(), "Error preparing Luau state");
|
||||
mlua_expect!(lua.prepare_luau_state(), "Error configuring Luau");
|
||||
|
||||
lua
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user