diff --git a/crates/cli/src/build.rs b/crates/cli/src/build.rs index 4a316b6d9a..3e2c7b9413 100644 --- a/crates/cli/src/build.rs +++ b/crates/cli/src/build.rs @@ -114,14 +114,26 @@ pub fn build_file<'a>( .exposed_to_host .values .keys() - .map(|x| x.as_str(&loaded.interns).to_string()) + .map(|x| { + format!( + "{}.{}", + x.module_string(&loaded.interns), + x.as_str(&loaded.interns) + ) + }) .collect(); let exposed_closure_types = loaded .exposed_to_host .closure_types .iter() - .map(|x| x.as_str(&loaded.interns).to_string()) + .map(|x| { + format!( + "{}.{}", + x.module_string(&loaded.interns), + x.as_str(&loaded.interns) + ) + }) .collect(); let preprocessed_host_path = if emit_wasm {