When i do dynamic imports to use <Image/>, i do this:
imageComponents = (await import(imagePath)).default;
This works perfectly when running npm run dev. However, when doing npm run build - import cant find the same file since it is in the folder "dist/chunks". If i try to break out by prefixing ../../ to the imagePath, dynamic imports no longer accepts / understands image-files.
The same as above goes for Astro.glob - I can do it in dev - but whenever build is being run, it doesn't work anymore.