Skip to content

Commit

Permalink
Editor: Fixed editor not loading on Chrome 129.0.6668.100 due to impo…
Browse files Browse the repository at this point in the history
…rt maps definitions location.
  • Loading branch information
mrdoob committed Oct 9, 2024
1 parent 1f05b51 commit feea24d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@

<link rel="stylesheet" href="css/main.css">

<script type="importmap">
{
"imports": {
"three": "../build/three.module.js",
"three/addons/": "../examples/jsm/",

"three/examples/": "../examples/",
"three-gpu-pathtracer": "https://cdn.jsdelivr.net/npm/[email protected]/build/index.module.js",
"three-mesh-bvh": "https://cdn.jsdelivr.net/npm/[email protected]/build/index.module.js"
}
}
</script>

<script src="../examples/jsm/libs/draco/draco_encoder.js"></script>

<link rel="stylesheet" href="js/libs/codemirror/codemirror.css">
Expand Down Expand Up @@ -54,19 +67,6 @@
<script src="js/libs/tern-threejs/threejs.js"></script>
<script src="js/libs/signals.min.js"></script>

<script type="importmap">
{
"imports": {
"three": "../build/three.module.js",
"three/addons/": "../examples/jsm/",

"three/examples/": "../examples/",
"three-gpu-pathtracer": "https://cdn.jsdelivr.net/npm/[email protected]/build/index.module.js",
"three-mesh-bvh": "https://cdn.jsdelivr.net/npm/[email protected]/build/index.module.js"
}
}
</script>

<script type="module">

import * as THREE from 'three';
Expand Down

0 comments on commit feea24d

Please sign in to comment.