From 610e21c995f3038119d3059e84bb58b78ed6d297 Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Mon, 20 Jul 2026 17:28:56 +0800 Subject: [PATCH] fix(pet): resolve bundled sprite asset directly --- src/App.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 2aa9a43..bdc3b03 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,6 +7,7 @@ import { StatusBubble } from "./features/chat/StatusBubble"; import { ProfileManager } from "./features/profiles/ProfileManager"; import { PetPackImporter } from "./features/pet/PetPackImporter"; import { connectionRuntimeStatusSchema } from "./features/chat/types"; +import aemeathSpritesheet from "./features/pet/assets/aemeath/aemeath-spritesheet.webp"; import { bootstrapStatusSchema, type BootstrapStatus } from "./types/bootstrap"; type PageKey = "chat" | "connections" | "desktop" | "pet" | "diagnostics"; @@ -21,10 +22,7 @@ const initialStatus: BootstrapStatus = { databaseSchemaVersion: 4, }; -const AEMEATH_SPRITESHEET = new URL( - "./features/pet/assets/aemeath/aemeath-spritesheet.webp", - import.meta.url, -).href; +const AEMEATH_SPRITESHEET = aemeathSpritesheet; const AEMEATH_FRAMES: Record<"idle" | "working" | "resting" | "speaking" | "error", number[]> = { idle: [0, 1, 2, 3, 4, 5],