Registry /
devops / vite-plugin-vinext-zephyr
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
muslnode 18–223 runs
build_error
glibcnode 18–223 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
vitePluginVinextZephyr
✓ import { vitePluginVinextZephyr } from 'vite-plugin-vinext-zephyr'
✗ const { vitePluginVinextZephyr } = require('vite-plugin-vinext-zephyr')
ESM-only package; CommonJS require is not supported.
default
✓ import vitePluginVinextZephyr from 'vite-plugin-vinext-zephyr'
✗ import { default } from 'vite-plugin-vinext-zephyr'
Default export is available but named export is preferred. Only the default export is documented, but the named export also exists.
type imports
✓ import type { ZephyrOptions } from 'vite-plugin-vinext-zephyr'
Types are shipped, but no explicit type exports are documented; use `typeof vitePluginVinextZephyr` if needed.
Configures Vite with the Vinext Zephyr plugin using environment variables for authentication.
// vite.config.ts
import { vitePluginVinextZephyr } from 'vite-plugin-vinext-zephyr';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
vitePluginVinextZephyr({
// Optional: Zephyr configuration
// If not provided, uses environment variables
orgSlug: process.env.ZEPHYR_ORG_SLUG ?? '',
projectSlug: process.env.ZEPHYR_PROJECT_SLUG ?? '',
apiKey: process.env.ZEPHYR_API_KEY ?? '',
})
],
});
// Ensure environment variables are set before building:
// ZEPHYR_ORG_SLUG=my-org ZEPHYR_PROJECT_SLUG=my-project ZEPHYR_API_KEY=xxx npx vite build
Errors
Common errors & fixes
Cannot find module 'vite-plugin-vinext-zephyr' or its corresponding type declarations.
Package is ESM-only; CommonJS require or missing tsconfig settings.
fixEnsure your project uses ESM (type: module in package.json) and TypeScript has moduleResolution set to 'bundler' or 'node16'.
TypeError: Plugin configuration is invalid: plugins must be an array of Vite plugins.
Passing the plugin as a function call without instantiation (e.g., using vitePluginVinextZephyr instead of vitePluginVinextZephyr()).
fixUse vitePluginVinextZephyr() (call the function) in the plugins array.
Error: [Zephyr] API_KEY is required for authentication. Please provide via environment variable or options.
Missing ZEPHYR_API_KEY or options.apiKey.
fixSet ZEPHYR_API_KEY environment variable or pass apiKey in plugin options.
Audit
Dependencies
viterequiredPeer dependency: required to function as a Vite plugin