Added comment-emission to the compiler

This commit is contained in:
2024-05-03 21:04:57 -05:00
parent 72e980a2db
commit bde91901e2
8 changed files with 96 additions and 16 deletions
+1 -1
View File
@@ -20,5 +20,5 @@ pub fn source_map(snippet: String) -> JsValue {
#[wasm_bindgen]
pub fn compile_forge(src: String) -> Result<String, String> {
build_boot(src.as_str()).map(|s| s.join("\n")).map_err(|e| format!("{}", e))
build_boot(src.as_str(), true).map(|s| s.join("\n")).map_err(|e| format!("{}", e))
}