Skip to content

Commit 8057386

Browse files
committed
expose forget to wasm
1 parent 0cbdea5 commit 8057386

File tree

1 file changed

+1
-1
lines changed
  • crates/cli-support/src/js

1 file changed

+1
-1
lines changed

crates/cli-support/src/js/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl<'a> Context<'a> {
249249
format!("{}{}\n", export, contents)
250250
} else {
251251
assert_eq!(export_name, definition_name);
252-
format!("{}const {} = {};\n", export, export_name, contents)
252+
format!("{}const {name} = {};\n__exports.{name} = {name};", export, contents, name = export_name)
253253
}
254254
}
255255
};

0 commit comments

Comments
 (0)