Skip to content

Commit 58d9777

Browse files
committed
Fix __wbindgen_main being cleaned up
1 parent efcdba4 commit 58d9777

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ impl<'a> Context<'a> {
14681468
let mut to_remove = Vec::new();
14691469
for export in self.module.exports.iter() {
14701470
match export.name.as_str() {
1471-
n if n.starts_with("__wbindgen") => {
1471+
n if n.starts_with("__wbindgen") && n != "__wbindgen_main" => {
14721472
to_remove.push(export.id());
14731473
}
14741474
_ => {}

0 commit comments

Comments
 (0)