1
0
mirror of https://github.com/beestat/app.git synced 2026-02-26 21:20:38 -05:00
2026-02-14 16:52:26 -05:00

14 lines
428 B
JavaScript

// 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;