|
@@ -20,9 +20,21 @@
|
|
|
<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> css3d - sprites</div>
|
|
|
<div id="container"></div>
|
|
|
|
|
|
+ <!-- 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 { TWEEN } from './jsm/libs/tween.module.min.js';
|
|
|
import { TrackballControls } from './jsm/controls/TrackballControls.js';
|