Revert "Source Sets"

This reverts commit d93d0416e5.
This commit is contained in:
Firq 2024-10-22 20:51:48 +02:00
parent d93d0416e5
commit 8e6be5ae82
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
8 changed files with 9 additions and 10 deletions
src/utils

View file

@ -1,4 +1,4 @@
export async function plsLoadImage(record: Record<string, () => Promise<{default: ImageMetadata}>>, path: string) {
export function plsLoadImage(record: Record<string, () => Promise<{default: ImageMetadata}>>, path: string) {
const loadedImage = record[path]?.();
if (!loadedImage) throw new Error("Asset was not found:" + path);
return loadedImage;