Closed wobsoriano closed 1 month ago
This PR refactors the codebase to use SvelteKit library mode when packaging the app. Removed the demo packages and moved the Vite demo as playground.
Vitest has been setup for unit testing the components. Super fast!
Updated peer deps as well to support Svelte 3-5.
Fixes https://github.com/romkor/svelte-portal/issues/180 and https://github.com/romkor/svelte-portal/issues/176
Not caused by the PR, but this code causes element to be undefined in onMount with Svelte 5 and works fine with Svelte 4
element
undefined
onMount
<button> use:portal={'body'} bind:this={element} ...
UPD: https://github.com/sveltejs/svelte/pull/12679
This PR refactors the codebase to use SvelteKit library mode when packaging the app. Removed the demo packages and moved the Vite demo as playground.
Vitest has been setup for unit testing the components. Super fast!
Updated peer deps as well to support Svelte 3-5.
Fixes https://github.com/romkor/svelte-portal/issues/180 and https://github.com/romkor/svelte-portal/issues/176