Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Conversation

willemneal
Copy link

@willemneal willemneal commented May 25, 2021

  • keep-export (-k ) keeps export and removes others
  • keep-export-pattern (-x) keeps exports matching pattern

Since there is GC pass at the end, this will strip away all exports not referenced by the exports kept. This is useful for cleaning up .wasm files generated with extra exports then are needed.

I still need to update the documentation, but I wanted to first know if this is a welcomed feature, otherwise I can strip this out to a separate tool.

- `keep-export`(`-k `)  keeps export and removes others
- `keep-export-pattern` (`x`) keeps exports matching pattern

Since there is GC pass at the end, this will strip away all exports not referenced by the exports kept.  This is useful for cleaning up `.wasm` files generated with extra exports then are needed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant