Closed pedroalmeida415 closed 5 months ago
This is untrue -- bundlers can evaluate namespaces, and we use that for type information only.
Also see https://docs.pmnd.rs/react-three-fiber/api/canvas#tree-shaking.
You're right! The problem was actually in the analyzing tool I was using.
Thanks for clarifying!
import * as THREE from 'three' makes it impossible to do tree-shaking on the Three.js package.