how do i add my OrbitControls into seperate js file
my html
import * as THREE from ‘https://threejsfundamentals.org/threejs/resources/threejs/r122/build/three.module.js’;
import {OrbitControls} from 'https://threejsfundamentals.org/threejs/resources/threejs/r122/examples/jsm/controls/OrbitControls.js';
js file
…
const orbitControl = new OrbitControls(camera,renderer.domElement);
orbitControl.update();
…
this giving me not defined