steal-clone copies configuration, which eventually includes a load's metadata. For tree-shaking we use Sets to keep track of which exported names are used. It's like Set{ "DefineMap", "Component" }. steal-clone's configuration cloning turns these into normal objects, and so we throw when the code does set.has(str).
steal-clone copies configuration, which eventually includes a load's metadata. For tree-shaking we use Sets to keep track of which exported names are used. It's like
Set{ "DefineMap", "Component" }
. steal-clone's configuration cloning turns these into normal objects, and so we throw when the code doesset.has(str)
.