t3-oss / t3-env

https://env.t3.gg
MIT License
2.67k stars 86 forks source link

Is there a way not to include zod into the bundle? #226

Open AleksandrZhukov opened 5 months ago

AleksandrZhukov commented 5 months ago

I have a classic SPA application, want to use t3-env to validate envs just on build time, plus autocomplete etc. But my application doesn't use zod inside, so seems it sounds reasonable not to include it to the bundle. It is possible to achieve?

juliusmarminge commented 5 months ago

No - we have plans to support other validation libraries (#6 #169) so you can bring something lighter if you're not already using Zod. But just haven't had time n'or the need for it myself since I almost always use zod for validating other stuff so there's no extra bytes for me