separate game interface import better

This commit is contained in:
tresabhi committed 2026-05-18 16:45:36 -05:00
1 parent cca46957bc
commit 03e06b050e
1 file changed
+2 -1
+2 -1
View File
@@ -1,10 +1,11 @@
import { assertSecret } from "@blitzkit/core";
import { GameInterface } from "@blitzkit/game";
import type { GameInterface } from "@blitzkit/game";
import { clientUnmounted } from "./unmounted";
let _game: GameInterface | null = null;
if (!clientUnmounted) {
const { GameInterface } = await import("@blitzkit/game");
_game = new GameInterface(assertSecret(import.meta.env.PUBLIC_WOTB_CLIENT));
}