Hi, the contributors of three
Thanks for writing the amazing 3D lib, it’s really good to use and give us a lot of help to develop beautiful 3D objects.
However, there is something bother me, when I am trying to
import 'three/examples/js/controls/OrbitControls' as an extend method to THREE in the develop mode of ES6 modules. Such as the identifier of
THREE would be undefined without handle it in Webpack, like what happened in #15583. And the OrbitControls can’t be control as a module. It makes little inconvenient and out of style in the age of Modularization Development.
Maybe The plugin pattern could be like:
import * as THREE from 'three' import OrbitControlsPlugin from '@threejs/plugin-orbit-controls' // Register and install a plugin. THREE.use(OrbitControlsPlugin) // After register, we could use the extend method. THREE.OrbitControls()