Skip to content

Commit 76d0833

Browse files
committed
Fix: bundler.
1 parent 1a9ca06 commit 76d0833

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### v24.6.2
66

77
- Correcting recommendations given in [v24.6.0](#v2460) regarding using with `zod@^4.0.0`:
8-
- Make sure the `moduleResolution` in your `tsconfig.json` is either `node16`, `nodenext` or `bundle`;
8+
- Make sure the `moduleResolution` in your `tsconfig.json` is either `node16`, `nodenext` or `bundler`;
99
- Consider the [recommended tsconfig base, Node 20+](https://github.com/tsconfig/bases/blob/main/bases/node20.json);
1010
- Then you MAY `import { z } from "zod"`;
1111
- Otherwise, you MUST keep `import { z } from "zod/v4"`;
@@ -27,7 +27,7 @@
2727

2828
- Supporting `zod` versions `^3.25.35 || ^4.0.0`:
2929
- If you use `zod@^4.0.0` then you MAY `import { z } from "zod"`:
30-
- If facing error, ensure `moduleResolution` in your `tsconfig.json` is either `node16`, `nodenext` or `bundle`;
30+
- If facing error, ensure `moduleResolution` in your `tsconfig.json` is either `node16`, `nodenext` or `bundler`;
3131
- If you use `zod@^3.25.35` then keep `import { z } from "zod/v4"`;
3232
- For more details, see the [Explanation of the versioning strategy](https://github.com/colinhacks/zod/issues/4371).
3333

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ When using `zod@^4` and doing `import { z } from "zod"` you may encounter the fo
13931393
TS2739: ZodObject<...> is missing the following properties from ZodType<...>: example, deprecated.
13941394
```
13951395

1396-
In this case make sure the `moduleResolution` in your `tsconfig.json` is either `node16`, `nodenext` or `bundle`.
1396+
In this case make sure the `moduleResolution` in your `tsconfig.json` is either `node16`, `nodenext` or `bundler`.
13971397
Consider the [recommended tsconfig base, Node 20+](https://github.com/tsconfig/bases/blob/main/bases/node20.json).
13981398
Otherwise, keep importing `from "zod/v4"` or consider upgrading the framework to v25.
13991399

0 commit comments

Comments
 (0)