fix compiling with no template

This commit is contained in:
Quaternions 2024-07-01 14:42:36 -07:00
parent 9808c2ac0c
commit ee034a93ee

View File

@ -780,7 +780,7 @@ async fn compile(config:CompileConfig)->AResult<()>{
let mut dom=match config.template{
//mr dom doesn't like tokio files
Some(template_path)=>load_dom(std::io::BufReader::new(std::fs::File::open(template_path)?))?,
None=>rbx_dom_weak::WeakDom::default(),
None=>rbx_dom_weak::WeakDom::new(rbx_dom_weak::InstanceBuilder::new("DataModel")),
};
rox_compiler::compile(rox_compiler::CompileConfig{