Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option to strip exports except argument #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant