three-globe icon indicating copy to clipboard operation
three-globe copied to clipboard

Do three-globe support tree-shaking for webpack?

Open KevinZhang19870314 opened this issue 1 year ago • 2 comments

I am using your awesome library in my project, but then I found that the bunder size is a little bit large, I am not sure thee-globe can support tree-shaking or not?

import ThreeGlobe from "three-globe";

image

KevinZhang19870314 avatar Aug 18 '22 10:08 KevinZhang19870314

@KevinZhang19870314 yes the module should be tree-shakeable. More info about it here: https://bundlephobia.com/package/three-globe

vasturiano avatar Aug 18 '22 10:08 vasturiano

@KevinZhang19870314 yes the module should be tree-shakeable. More info about it here: https://bundlephobia.com/package/three-globe

Okay, so it means three-globe bundler size is normal and also has been tree shaked? If is it, then thank you, I'll take my time to look into other packages size in my bundler.

KevinZhang19870314 avatar Aug 18 '22 10:08 KevinZhang19870314