Svelte
Experimental
Svelte support is experimental. SvelteKit components are not expected to work.
Svelte projects should work out of the box with Preview.js.
If you need to set up global state or wrap your components, you can create a Wrapper
component:
<!-- __previewjs__/Wrapper.svelte -->
<script>
import "../src/styles.css";
</script>
<div class="wrapped">
<slot />
</div>