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

v3 docs: Made zod imports treeshakable #2846

Open
wants to merge 2 commits into
base: v3
Choose a base branch
from
Open

v3 docs: Made zod imports treeshakable #2846

wants to merge 2 commits into from

Conversation

MickL
Copy link

@MickL MickL commented Dec 6, 2024

The following import is not treeshakable:

import { z } from 'zod'

So I replaced it with

import * as z from 'zod'

Further, because zod is not very treeshakable (Issue: colinhacks/zod#2596) and has a huge bundle size, I replaced its first place position in the docs with Valibot which is fully tree shakable, full type safe and has other benifits as well.

@benjamincanac benjamincanac requested a review from romhml December 6, 2024 15:30
@benjamincanac benjamincanac added the v3 #1289 label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 #1289
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants