Replies: 1 comment
-
Here you go https://github.com/gajus/babel-plugin-zod |
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
-
Suppose I have a code like this:
Is there an existing Babel plugin (or alternative technique) that would hoist zod object definitions to the top-most scope?, i.e. rewrite the code to:
It would be pretty easy to write something like this.
However, I am not familiar enough with Zod internals to know if it is worth it, or if the initiailization logic of the object shapes is cheap enough to not matter?
Beta Was this translation helpful? Give feedback.
All reactions