Description of the problem
Consider adding "sideEffects": false to package.json so that bundlers like webpack are able to tree shake three.js. See https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free for more info.
Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)