Spaces:
Running
Running
Rebuild explorer from preview a733ccf (Open 3D blobs in a viewer to orbit)
Browse filesThe new standalone build writes the wasm URL with backticks, so bundle.mjs now matches either quote style.
- explorer/bundle.mjs +1 -1
- 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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc9081f6ab93635b4c2459585eb9b192f511a7e10f7261c079acd0afb7253a12
|
| 3 |
+
size 15279942
|