|
@@ -148,8 +148,20 @@
|
|
|
</div>
|
|
|
<div id="labels"></div>
|
|
|
</body>
|
|
|
+<!-- Import maps polyfill -->
|
|
|
+<!-- Remove this when import maps will be widely supported -->
|
|
|
+<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
|
|
|
+
|
|
|
+<script type="importmap">
|
|
|
+{
|
|
|
+ "imports": {
|
|
|
+ "three": "../../build/three.module.js"
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
<script type="module">
|
|
|
-import * as THREE from '../../build/three.module.js';
|
|
|
+import * as THREE from 'three';
|
|
|
import {OrbitControls} from '../../examples/jsm/controls/OrbitControls.js';
|
|
|
import {GLTFLoader} from '../../examples/jsm/loaders/GLTFLoader.js';
|
|
|
import * as SkeletonUtils from '../../examples/jsm/utils/SkeletonUtils.js';
|