When a module does export * and is progressively loaded, it should be able to be tree-shaken again (and then re-executed.
This doesn't seem to be happened because its previous used exports are not known, and we have a short cut that prevents doing the work of reparsing if we think it hasn't already been parsed.
We should be saving the used exports on the load.metadata object for export * modules.
When a module does
export *
and is progressively loaded, it should be able to be tree-shaken again (and then re-executed.This doesn't seem to be happened because its previous used exports are not known, and we have a short cut that prevents doing the work of reparsing if we think it hasn't already been parsed.
We should be saving the used exports on the
load.metadata
object for export * modules.