sveltekit_helpers.ts view source
(package_json: { [x: string]: unknown; name: string; version?: string | undefined; private?: boolean | undefined; description?: string | undefined; tagline?: string | undefined; glyph?: string | undefined; ... 24 more ...; exports?: string | ... 2 more ... | undefined; }): Result<...> import {has_sveltekit_app} from '@fuzdev/gro/sveltekit_helpers.js'; Detected from package.json rather than the Svelte config,
because reading the config costs a full Vite config resolution.
Peer deps don't count - a package peered on SvelteKit is built to work with one,
not to be one, and counting them would run vite build over a library that has no app.
package_json
PackageJsonreturns
Result