diff --git a/src/module.rs b/src/module.rs index bdb545b1..1fa704c8 100644 --- a/src/module.rs +++ b/src/module.rs @@ -740,6 +740,15 @@ mod file { pub fn new() -> Self { Default::default() } + + /// Create a `Module` from a file path. + pub fn create_module>( + &self, + engine: &Engine, + path: &str, + ) -> Result> { + self.resolve(engine, path, Default::default()) + } } impl ModuleResolver for FileModuleResolver {