What is <script type="importmap">
and why do I suddenly need it for my code to work?
<script type="importmap">
{
"imports": {
"three": "https://example.com/3dstuff/three.module.js"
}
}
</script>
Before, I would just write this and Three.js would work, but now this part doesn't work without the importmap:
<script type="module"> import * as THREE from "https://example.com/3dstuff/three.module.js";