You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/faq.md
+6
Original file line number
Diff line number
Diff line change
@@ -237,3 +237,9 @@ See the faq about [vite and prebundling](#what-is-going-on-with-vite-and-pre-bun
237
237
> [svelte-package](https://kit.svelte.dev/docs/packaging) which already supports it.
238
238
>
239
239
> For backwards compatibility, you can keep the `svelte` field in addition to the `exports` condition. But make sure that both always resolve to the same files.
240
+
241
+
### How do I manually specify an <img/> 'src', or any other asset, with an inline URL?
242
+
243
+
Currently, Svelte does not support inline asset URLs, you can only specify it via an imported asset.
244
+
245
+
2 recommended solutions are to use either [sveltejs/enhanced-img](https://kit.svelte.dev/docs/images#sveltejs-enhanced-img)(only for image elements) or [svelte-preprocess-import-assets](https://www.npmjs.com/package/svelte-preprocess-import-assets)(for all asset URLs).
0 commit comments