-
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?To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
pi0
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
feat: support treeshaking Wasm modules