Hello,
I ran into some issues using svelte-viewport-info in a sveltekit project.
- SSR was causing issues but I was able to address that by moving a few things around.
- Type definitions were not exported by the package json, thus LSP was warning.
- Couldn't build the project because it asked for tslib as a dependency.
So, these all seem to be addressed, but then I realized we also have svelte:window that we could use to get the innerWidth. Is there any benefit to using svelte-viewport-info over svelte:window?
None the less, this is a good example of incorporating vanilla JS and events into svelte. Thank you for your contribution.
P.S I can cleanup my modifications and send a PR if you like.
Hello,
I ran into some issues using svelte-viewport-info in a sveltekit project.
So, these all seem to be addressed, but then I realized we also have svelte:window that we could use to get the innerWidth. Is there any benefit to using svelte-viewport-info over svelte:window?
None the less, this is a good example of incorporating vanilla JS and events into svelte. Thank you for your contribution.
P.S I can cleanup my modifications and send a PR if you like.