From e2be51f3f7773b4b2230f984871a7f684eea1051 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Sat, 29 Nov 2025 15:42:51 -0800 Subject: [PATCH] [Bug] Revert change to imports in `main.ts` --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 7fdb2a7a024..9516fe9e6ab 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,5 @@ import "#app/polyfills"; // All polyfills MUST be loaded first for side effects -import { BattleScene } from "#app/battle-scene"; -import { LoadingScene } from "#app/loading-scene"; import { InvertPostFX } from "#app/pipelines/invert"; import { initI18n } from "#app/plugins/i18n"; import { isBeta, isDev } from "#constants/app-constants"; @@ -65,6 +63,8 @@ Phaser.GameObjects.Rectangle.prototype.setPositionRelative = setPositionRelative async function startGame(gameManifest?: Record): Promise { await initI18n(); + const LoadingScene = (await import("./loading-scene")).LoadingScene; + const BattleScene = (await import("./battle-scene")).BattleScene; const game = new Phaser.Game({ type: Phaser.WEBGL, parent: "app",