JSFiddle - React, Tailwind, and code Playground

JavaScript

import * as THREE  from "https://rawgit.com/mrdoob/three.js/r141/build/three.module.js";

const box = new THREE.BoxGeometry(5, 5, 5);
console.log(box);
const geometry = new THREE.BufferGeometry();
geometry.merge(box);

console.log(geometry);