t3-env icon indicating copy to clipboard operation
t3-env copied to clipboard

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

Open AleksandrZhukov opened this issue 1 year ago • 1 comments
trafficstars

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?

AleksandrZhukov avatar Apr 24 '24 15:04 AleksandrZhukov

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

juliusmarminge avatar Apr 26 '24 08:04 juliusmarminge