v2
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
import * as z from "./v4/classic/external.js";
|
||||
export * from "./v4/classic/external.js";
|
||||
// Aliasing the binding, instead of `export default z`, keeps the default export a
|
||||
// re-export of `z` rather than a fresh namespace value. Rollup and Webpack can then
|
||||
// shake `import z from "zod"` as they already shake `import { z } from "zod"` — without
|
||||
// this they pull in every locale. See #6050.
|
||||
export { z, z as default };
|
||||
Reference in New Issue
Block a user