fix(rnetwork): use three.webgpu.js for WebGPURenderer export
Map both "three" and "three/webgpu" to three.webgpu.js so only one copy loads and WebGPURenderer is available. Also externalize three/webgpu in esm.sh URL so it uses the import map. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
47d2c41400
commit
ccf31edcbe
|
|
@ -16,11 +16,11 @@ import { renderLanding } from "./landing";
|
||||||
const GRAPH3D_IMPORTMAP = `<script type="importmap">
|
const GRAPH3D_IMPORTMAP = `<script type="importmap">
|
||||||
{
|
{
|
||||||
"imports": {
|
"imports": {
|
||||||
"three": "https://cdn.jsdelivr.net/npm/three@0.169.0/build/three.module.js",
|
"three": "https://cdn.jsdelivr.net/npm/three@0.169.0/build/three.webgpu.js",
|
||||||
"three/webgpu": "https://cdn.jsdelivr.net/npm/three@0.169.0/build/three.module.js",
|
"three/webgpu": "https://cdn.jsdelivr.net/npm/three@0.169.0/build/three.webgpu.js",
|
||||||
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.169.0/examples/jsm/",
|
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.169.0/examples/jsm/",
|
||||||
"three/examples/jsm/": "https://cdn.jsdelivr.net/npm/three@0.169.0/examples/jsm/",
|
"three/examples/jsm/": "https://cdn.jsdelivr.net/npm/three@0.169.0/examples/jsm/",
|
||||||
"3d-force-graph": "https://esm.sh/3d-force-graph@1?bundle-deps&external=three"
|
"3d-force-graph": "https://esm.sh/3d-force-graph@1?bundle-deps&external=three,three/webgpu"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>`;
|
</script>`;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue