Skip to content

Commit 670a6d2

Browse files
authored
Improve Next.js tree shaking (#4569)
* Fix package.json * Undo doc changes * Fix rollup warnings
1 parent 22ab436 commit 670a6d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3909
-4761
lines changed

packages/docs/content/error-customization.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ async function loadLocale(locale: string) {
306306
await loadLocale("fr");
307307
```
308308

309-
For convenience, all locales are exported as `z.locales` from `zod/v4/locales`.
309+
For convenience, all locales are exported as `z.locales` from `zod/v4`. In some bundlers, this may not be tree-shakable.
310310

311311
<Tabs groupId="lib" items={["Zod", "Zod Mini"]}>
312312
<Tab value="Zod">

packages/treeshake/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
out.js

0 commit comments

Comments
 (0)