export const require = (imgPath) => { try { const handlePath = imgPath.replace('@', '..'); return new URL(handlePath, import.meta.url).href; } catch(err) { console.warn(err); } }