Can you explain the role of
<script type="importmap">
and why it has become necessary for my code to function properly?
<script type="importmap">
{
"imports": {
"three": "https://example.com/3dstuff/three.module.js"
}
}
</script>
In the past, simply including this line would make Three.js work seamlessly, but now it seems that it is essential to use importmap:
<script type="module"> import * as THREE from "https://example.com/3dstuff/three.module.js";