Closed allain closed 1 year ago
Sorry for the late response. hyperactiv
only has a default export, so it's not able destructure properly when exporting
The solution is to import the default export from hyperactiv
first, then export the methods you'd like treeshaken
import hyperactiv from 'hyperactiv'
export const { observe, computed } = hyperactiv
My apologies. I'd read and then forgot about it.
Thanks for replying
No worries 👍
It's reporting the following code bundles to a couple hundred bytes but it is closer to 10k or so.
Reports:
Bundle size is 174B -> 119B (gzip)
When I enable analisys treemap, I can see that it's able to see the code defined though.