Replies: 1 comment 3 replies
-
wasm-metadce can remove exports that you specify: But it won't automatically remove empty ones, so you'd need to find out which are empty and give it those as a list. That could be fairly easily done by parsing the wat file though, I think. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Quite often, after all optimizations, wasm-opt leaves exported functions empty:
Is there a way to tell wasm-opt that it is also safe to remove the exported functions if they are empty? I know for sure that the target runtime handles missed exports correctly.
Beta Was this translation helpful? Give feedback.
All reactions