mirror of
https://github.com/beestat/app.git
synced 2026-02-26 13:10:23 -05:00
Skeleton
This commit is contained in:
parent
dd2455078c
commit
29166179c4
2
js/lib/straight-skeleton/index.js
Normal file
2
js/lib/straight-skeleton/index.js
Normal file
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user