Source Sets
This commit is contained in:
parent
564e902b69
commit
d93d0416e5
8 changed files with 10 additions and 9 deletions
src/utils
|
@ -1,4 +1,4 @@
|
|||
export function plsLoadImage(record: Record<string, () => Promise<{default: ImageMetadata}>>, path: string) {
|
||||
export async 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue