thilo,
@thilo@maier.social avatar

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 a src at runtime. This restriction seems to be inherited from vite-imagetools.

<enhanced:img /> is in its infancy, therefore lots of room for improvement.

https://github.com/sveltejs/kit/issues/11535

  • All
  • Subscribed
  • Moderated
  • Favorites
  • svelte
  • kavyap
  • thenastyranch
  • ethstaker
  • InstantRegret
  • osvaldo12
  • DreamBathrooms
  • Durango
  • magazineikmin
  • khanakhh
  • Youngstown
  • everett
  • slotface
  • rosin
  • mdbf
  • provamag3
  • ngwrru68w68
  • tacticalgear
  • cubers
  • GTA5RPClips
  • modclub
  • Leos
  • tester
  • megavids
  • cisconetworking
  • normalnudes
  • anitta
  • JUstTest
  • lostlight
  • All magazines