You want zod
to be part of your JS bundle, so you shouldn't have to change your vite.config.js
at all. 🤔
Try removing the external
property:
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
});