-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
Some users may organize their module scripts directly under the source directory, but resolve them into different paths at runtime.
For example, if we have:
src/
main.rhai
modules/
foo/
baz/
main.rhai
bar/
main.rhaiDuring runtime, the user may want imports to work this way:
import "baz" as baz;
import "bar" as bar;So can something like this be put into Rhai.toml:
[modules]
foo = "./modules/foo"
bar = "./modules/bar"
baz = "./modules/foo/baz"