Use classic three.js global build instead of ES module import map

This commit is contained in:
2026-07-20 01:18:44 +09:00
parent 3fd7d8112d
commit 6b683f2511
3 changed files with 9 additions and 12 deletions

View File

@@ -72,12 +72,8 @@
<div class="stage" id="stage"></div>
<p class="hint">나무를 드래그해서 흔들어 보세요 🍎</p>
<script type="importmap">
{ "imports": { "three": "./vendor/three.module.min.js" } }
</script>
<script type="module">
import * as THREE from "three";
<script src="./vendor/three.min.js"></script>
<script>
const stage = document.getElementById('stage');
// ---------- renderer / scene / camera ----------