Here to introduce three.js example.
import * as THREE from 'three' Vue.prototype.THREE = THREE
Use Vue.prototypeto register globals
Vue.prototype
this.scene = new this.THREE.Scene()
Use directly in the component this.THREEto call
this.THREE