Skip to content

Is Vite not able to externalize zod dependencies? #20146

Answered by hi-ogawa
ngdangtu-vn asked this question in Q&A
Discussion options

You must be logged in to vote

You have import { z } from "zod/v4", so you need external: ["zod/v4"] or regex https://rollupjs.org/configuration-options/#external

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ngdangtu-vn
Comment options

@ngdangtu-vn
Comment options

@hi-ogawa
Comment options

Answer selected by ngdangtu-vn
@ngdangtu-vn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants