Replies: 3 comments
-
even though full size gzipped valibot is not even half the zod haha |
Beta Was this translation helpful? Give feedback.
0 replies
-
If I did that, the bundle size would probably end up being the same, since almost no compression can be applied, since you would have to load each function individually. Do you have examples of other libraries? |
Beta Was this translation helpful? Give feedback.
0 replies
-
What you can do is export what you need with bundlejs.com, run the build step and then copy the output your project: https://bundlejs.com/?q=valibot&treeshake=%5B%7B+email%2CminLength%2Cobject%2Cstring+%7D%5D |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use importmap without bundler, with current build output cdn consumers still have to download all code to use directly on the browser.
Splitting each method into individual files or paths should work.
Beta Was this translation helpful? Give feedback.
All reactions