bytecodealliance / ComponentizeJS

JS -> WebAssembly Component
Apache License 2.0
242 stars 32 forks source link

fix: resource tree-shaking #129

Closed guybedford closed 3 months ago

guybedford commented 3 months ago

This fixes the resource tree-shaking to ensure we never tree-shake resources, the reason being that any imported or exported function might use an imported resource, and we need to explicitly determine that check in the tree-shaking algorithm to support resource tree-shaking. This is noted as a TODO further. // cc @karthik2804 @tschneidereit