diff --git a/.changeset/poor-heads-fix.md b/.changeset/poor-heads-fix.md new file mode 100644 index 000000000000..aacdc8664ccc --- /dev/null +++ b/.changeset/poor-heads-fix.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/enhanced-img': patch +--- + +fix: warn rather than crash when non-enhanced image dynamically passed to `enhanced:img` diff --git a/documentation/docs/40-best-practices/07-images.md b/documentation/docs/40-best-practices/07-images.md index eb54ec488419..4ba8d2420493 100644 --- a/documentation/docs/40-best-practices/07-images.md +++ b/documentation/docs/40-best-practices/07-images.md @@ -84,7 +84,7 @@ You can also use [Vite's `import.meta.glob`](https://vitejs.dev/guide/features.h ```svelte - + + + + + +