vitefu provides utilities for building frameworks with Vite, including `crawlFrameworkPkgs` to scan dependencies and `isDepExternaled` to check externalization status. Current stable version is 1.1.3, released in March 2025. It supports Vite 3–8 as peer dependencies and is updated regularly (multiple releases per year). Key differentiators: wraps Vite's internal logic for framework authors, handles workspace crawling, and is used by SvelteKit and Astro. It ships TypeScript types and ESM/CJS exports.
npm install vitefuVerified import paths — ran on the pinned version, not inferred.
Demonstrates using crawlFrameworkPkgs to include framework dependencies for optimization and SSR externalization in a Vite config.
Upgrade to v1.1.3 or later, or sort arrays manually.
Ensure workspaceRoot points to the root of your monorepo and that private packages have package.json with devDependencies.
Upgrade to v1.0.6 or later, or convert boolean ssr.external to array manually.
Wrap initialization in async function if you need top-level await.
Upgrade to v0.2.5 or later.
Move the call inside the 'configResolved' hook as shown in the quickstart.
Upgrade to v1.0.6+ which gracefully handles missing package.json, or ensure root has a package.json.
Run npm install vitefu (or yarn/pnpm add vitefu). It requires Vite as a peer dependency.