thilo, TIL that @sveltejs/enhanced-img is subject to a preprocessing step to convert its
src
prop into an import.As a consequence, you can't use
<enhanced:img />
inside another component and pass in asrc
at runtime. This restriction seems to be inherited fromvite-imagetools
.
<enhanced:img />
is in its infancy, therefore lots of room for improvement.