mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
11 lines
454 B
JavaScript
11 lines
454 B
JavaScript
import * as THREE from 'three';
|
|
|
|
// Currently it's not possible to import the files within the "examples/js" directory.
|
|
// Fix: https://github.com/mrdoob/three.js/issues/9562#issuecomment-383390251
|
|
global.THREE = THREE;
|
|
require('three/examples/js/controls/OrbitControls');
|
|
require('three/examples/js/loaders/LoaderSupport');
|
|
require('three/examples/js/loaders/OBJLoader2');
|
|
require('three/examples/js/loaders/STLLoader');
|
|
|
|
module.exports = global.THREE;
|