In a situation like this...
var CubeGeometry;
CubeGeometry = BoxGeometry;
function BoxGeometry ( options ) {
/* code goes here */
};
export { CubeGeometry, BoxGeometry };
...the BoxGeometry function becomes function exports.BoxGeometry which is obviously broken. Interestingly if you initialise CubeGeometry immediately it works fine.
In a situation like this...
...the
BoxGeometryfunction becomesfunction exports.BoxGeometrywhich is obviously broken. Interestingly if you initialiseCubeGeometryimmediately it works fine.