-
-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
I noticed CodeHike currently uses runtime prop validation with Zod (when not using React Server Components). This works well, but Zod's bundle size might be a concern for some environments.
I've been working on an alternative approach: recma-static-refiner, a build-time plugin that validates and transforms MDX props during compilation rather than at runtime. It uses Standard Schema (Zod, Valibot, or ArkType) at build time - zero validation code ships to the client.
The README includes a CodeHike-specific example showing how meta props can be validated and transformed. I'd love to get your thoughts on whether this pattern could complement CodeHike's architecture.
Any feedback welcome!
Thx!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels