fix(rnetwork): add three/webgpu to import map for 3d-force-graph
The esm.sh bundle of 3d-force-graph@1.79.1 imports "three/webgpu" which wasn't in the import map. Map it to the jsdelivr CDN path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9091c988ff
commit
dfcd3fa85a
|
|
@ -17,6 +17,7 @@ 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.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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue