@arkenv/vite-plugin
v0.0.29
Published
ArkEnv plugin for Vite
Maintainers
Readme
@arkenv/vite-plugin
Vite plugin to validate environment variables at build-time with ArkEnv.
Read the docs →
Features
- Build-time validation - app won't start if environment variables are invalid
- Typesafe environment variables backed by TypeScript
- Access to ArkType's powerful type system
[!IMPORTANT] This plugin requires
arktypeto be installed in your project.It does not support
validator: "standard". You can still use Zod or Valibot schemas alongside ArkType's DSL, since ArkType natively supports Standard Schema.See the docs for details.
Installation
npm install @arkenv/vite-plugin arktypepnpm add @arkenv/vite-plugin arktypeyarn add @arkenv/vite-plugin arktypebun add @arkenv/vite-plugin arktypeFAQ
Why is this a Vite only plugin? (And not a Rollup plugin?)
This plugin uses the Vite specific config hook, which is not available in Rollup.
