Split up Wasm binaries so Cloudflare deployments stay below 25 MB per file

This commit is contained in:
Keavon Chambers
2026-07-14 14:43:34 -07:00
parent 97f8113fe4
commit 97a43e66fb
6 changed files with 90 additions and 7 deletions
+3
View File
@@ -6,6 +6,9 @@ interface Window {
receiveNativeMessage?: (buffer: ArrayBuffer) => void;
}
// Build-time constant injected by the `wasmSplitting` plugin in `vite.config.ts`
declare const __WASM_PART_COUNT__: number;
// Graphite's custom "pointerlockmove" event dispatched by input.ts for pointer lock in the CEF desktop app
interface WindowEventMap {
pointerlockmove: CustomEvent<{ x: number; y: number }>;