Registry / web-framework / zova-vite

zova-vite

JSON →
library1.1.19jsnpmunverified

Zova Vite is a Vite plugin/framework integration for Zova, a TypeScript-first Node.js framework. Version 1.1.19 is the current stable release. It provides a streamlined development experience with hot module replacement (HMR), TypeScript support out of the box, and tight integration with Vite's build pipeline. Unlike generic Vite setups, it offers opinionated defaults for Zova projects, reducing configuration overhead. The plugin is actively maintained with frequent updates aligned to Vite's release cadence. Key differentiators include zero-config setup for Zova apps, automatic route generation, and built-in support for server-side rendering (SSR) when used with Zova.

npm install zova-vite
INSTALL
IMPORT
SIG · ZOVA-VITE
Z
zova-vite
web-frameworkjavascriptv1.1.19
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

zovaVitePlugin
import { zovaVitePlugin } from 'zova-vite'
const zovaVitePlugin = require('zova-vite')
ESM-only since v1.0; no CommonJS support.
ZovaViteOptions
import type { ZovaViteOptions } from 'zova-vite'
import { ZovaViteOptions } from 'zova-vite'
Type import; not a runtime value.
defineConfig
import { defineConfig } from 'zova-vite'
import { defineConfig as dc } from 'zova-vite'
Alias is allowed but not recommended; prefer named import as-is.

Shows basic usage of zova-vite plugin in a Vite config with SSR enabled and an API key from environment.

// vite.config.ts import { defineConfig, zovaVitePlugin } from 'zova-vite'; export default defineConfig({ plugins: [ zovaVitePlugin({ ssr: true, apiKey: process.env.ZOVA_API_KEY ?? '' }) ] });
Debug
Known issues
breakingzova-vite v1.0 dropped CommonJS support; require() will fail.
fix
Switch to ESM imports or use dynamic import() if in CJS context.
affects: >=1.0.0
deprecatedThe 'enableSSR' option was renamed to 'ssr' in v1.1.0.
fix
Use `ssr: true` instead of `enableSSR: true`.
affects: >=1.1.0
gotchaWhen using TypeScript, ensure 'moduleResolution' is set to 'bundler' or 'node16' in tsconfig.json.
fix
Set `moduleResolution: 'bundler'` or `'node16'`.
affects: >=1.0.0
deprecatedThe default export has been removed; use named export 'zovaVitePlugin'.
fix
Replace `import ZovaVite from 'zova-vite'` with `import { zovaVitePlugin } from 'zova-vite'`.
affects: >=1.0.0
gotchaDuring SSR, avoid using window/document in your plugin config.
fix
Wrap client-side code inside `if (typeof window !== 'undefined')` or use `onSSR` option.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'zova-vite' or its corresponding type declarations.
Package not installed or missing type definitions.
fix
Run `npm install zova-vite --save-dev` and ensure you have `@types/node` if needed.
TypeError: (0 , zova_vite_1.zovaVitePlugin) is not a function
Using require() with ESM-only package.
fix
Change to `import { zovaVitePlugin } from 'zova-vite'` and ensure project uses ESM.
Uncaught ReferenceError: defineConfig is not defined
Missing import for defineConfig.
fix
Add `import { defineConfig, zovaVitePlugin } from 'zova-vite'`.
[vite] Internal server error: Unexpected token 'export'
Using ESM syntax in a CommonJS module.
fix
Set `"type": "module"` in package.json or rename file to .mts.
Upgrade
Version history
1.1.19latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
50 hits · last 30 days
node
39
OpenAI (training)
1
Resources
zova-vite — npm install zova-vite · libregistry