Skip to content

Avoid re-exported star modules#5656

Merged
colinhacks merged 2 commits intomainfrom
possible-tree-shaking-fix
Jan 22, 2026
Merged

Avoid re-exported star modules#5656
colinhacks merged 2 commits intomainfrom
possible-tree-shaking-fix

Conversation

@colinhacks
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown
Contributor

@pullfrog pullfrog Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. The change correctly bypasses the intermediate re-export module to improve tree-shaking while maintaining the same public API surface.

One observation: this PR also adds export default z to the zod/mini and zod/v4-mini entry points. The intermediate v4/mini/index.ts didn't have a default export, so technically this is adding new functionality. However, this matches the pattern in src/index.ts and v4/classic/index.ts, so it's a welcome improvement for API consistency. Just noting it since the PR title focuses on tree-shaking rather than the default export addition.

Pullfrog  | View workflow runpullfrog.com𝕏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant