Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Replace zod with valibot for schema validation to reduce bundle sizes #300

Open
mikuso opened this issue Jan 23, 2025 · 0 comments

Comments

@mikuso
Copy link

mikuso commented Jan 23, 2025

Valibot is a schema library very similar to zod; It offers similar functionality and a similar API.

The big downside to zod (which has led to this suggestion) is that it is not tree-shakeable, and so bloats build sizes significantly.

Valibot is tree-shakeable. In my experience migrating my other projects from zod to valibot, the shrinking of bundle sizes has been worthwhile.

Just a suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant