-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature
When there are unused exports from a Wasm module they should be removed.
One possible way to do this:
- Get the unused exports during
generateBundle
frommodule.removedExports
- Read all the exports from the wasm file
- Remove the unused exports from that list
- Put those exports in a JSON file in the format that
wasm-metacde
(from binaryen) understands - Run
wasm-metadce
on the binary
FWIW, I've done something similar in a emscripten specific plugin here.
Additional information
- Would you be willing to help implement this feature?
pi0
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request