Patch Changes
-
9887d02: fix: transpile TypeScript to JavaScript in packaged Svelte components
The published
dist/Router.svelteshipped its<script>blocks as raw TypeScript because no preprocessor was configured forsvelte-package. Asvelte.config.jsusingvitePreprocess({script: true})now transpiles the<script>blocks so packaged components contain plain JavaScript. -
5c5e1f0: fix: rendering in SSR context
Makes svelte-spa-router work with Astro and other frameworks doing SSR.