1
0
mirror of https://github.com/beestat/app.git synced 2026-05-28 01:52:28 -04:00
This commit is contained in:
Jon Ziebell
2026-02-14 16:52:26 -05:00
parent dd2455078c
commit 29166179c4
2 changed files with 10 additions and 3 deletions
File diff suppressed because one or more lines are too long
+8 -3
View File
@@ -1,8 +1,13 @@
// Import the straight-skeleton library from CDN
import { SkeletonBuilder } from 'https://esm.sh/straight-skeleton@2.0.1';
// Load the straight-skeleton library from a local file.
import '/js/lib/straight-skeleton/index.js';
const SkeletonBuilder = window.SkeletonBuilder;
if (SkeletonBuilder === undefined) {
throw new Error('Failed to load local straight-skeleton runtime');
}
// Initialize the WASM module
await SkeletonBuilder.init();
// Expose to global scope so the rest of the codebase can use it
window.SkeletonBuilder = SkeletonBuilder;
window.SkeletonBuilder = SkeletonBuilder;