Spaces:
Running

YurkoWasHere commited on
Commit
0c833b9
·
verified ·
1 Parent(s): 01abd36

Rebuild explorer from preview a733ccf (Open 3D blobs in a viewer to orbit)

Browse files

The new standalone build writes the wasm URL with backticks, so bundle.mjs now matches either quote style.

Files changed (2) hide show
  1. explorer/bundle.mjs +1 -1
  2. explorer/explorer.js +2 -2
explorer/bundle.mjs CHANGED
@@ -25,7 +25,7 @@ const wasmUri = (f) => `data:application/wasm;base64,${readFileSync(join(work, f
25
  let inlined = 0;
26
  for (const f of readdirSync(work).filter((f) => f.endsWith(".js"))) {
27
  const path = join(work, f);
28
- const text = readFileSync(path, "utf8").replace(/new URL\("([\w.-]+\.wasm)",import\.meta\.url\)/g, (m, w) => {
29
  inlined++;
30
  return `new URL("${wasmUri(w)}")`;
31
  });
 
25
  let inlined = 0;
26
  for (const f of readdirSync(work).filter((f) => f.endsWith(".js"))) {
27
  const path = join(work, f);
28
+ const text = readFileSync(path, "utf8").replace(/new URL\(["`]([\w.-]+\.wasm)["`],import\.meta\.url\)/g, (m, w) => {
29
  inlined++;
30
  return `new URL("${wasmUri(w)}")`;
31
  });
explorer/explorer.js CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:77d268576cf1ba3a9fa2d3c0ec9eb4fe4f5e7f60c17fe2c3ab691b0ff768ccca
3
- size 11456164
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc9081f6ab93635b4c2459585eb9b192f511a7e10f7261c079acd0afb7253a12
3
+ size 15279942