mirror of
https://github.com/beestat/app.git
synced 2026-05-28 01:52:28 -04:00
Skeleton
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user