Julien-R44 / vite-plugin-validate-env

✅ Vite plugin for validating your environment variables
MIT License
166 stars 6 forks source link

Support valibot #29

Open BrunnerLivio opened 3 weeks ago

BrunnerLivio commented 3 weeks ago

We're utilising valibot at runtime in our project, since it results in a smaller bundle size. Surely it is possible to use Zod with this Vite plugin and Valibot at runtime, but it'd be amazing if we could use the same schema validator.

Julien-R44 commented 2 weeks ago

Hey, happy to accept a PR for Valibot. It should be pretty easy to add. Feel free to take inspiration from Zod driver :

https://github.com/Julien-R44/vite-plugin-validate-env/blob/main/src/validators/zod/index.ts