Fix local Three.js module resolution in MapLibre demo.
CI / test (push) Successful in 4s

This vendors BufferGeometryUtils, rewires GLTFLoader imports to local paths, and adds an import map fallback so bare three specifiers resolve correctly in browser.

Made-with: Cursor
This commit is contained in:
2026-03-02 22:45:20 +00:00
parent e1107256e8
commit 800ca832e7
3 changed files with 1382 additions and 1 deletions
+8
View File
@@ -138,6 +138,14 @@
</div>
<script src="./vendor/maplibre/maplibre-gl.js"></script>
<script type="importmap">
{
"imports": {
"three": "./vendor/three/three.module.js",
"three/": "./vendor/three/"
}
}
</script>
<script type="module" src="./maplibre-demo.js"></script>
</body>
</html>