npm i -D vite-plugin-kit-routes
import { sveltekit } from '@sveltejs/kit/vite'
import { kitRoutes } from 'vite-plugin-kit-routes'
/** @type {import('vite').UserConfig} */
export default config = {
plugins: [
sveltekit(),
// ✅ Add the plugin
kitRoutes()
]
}
<script lang="ts">
import { route } from '$lib/ROUTES'
</script>
<a href={route('/about')}>About</a>
💡 KitQL itself is not a library, it's "nothing" but a collection of standalone libraries.