Skip to content

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

Description

@mikuso

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions