You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a1bc821
Browse filesBrowse the repository at this point in the historyBrowse files
authored
fix(email): convert email-validator for installed Void worker runtimes in dev (#407)
When running `vp dev`, importing `void/email` crashes with
`ReferenceError: exports is not defined`, and the crash takes down every
page, not just the email route.
That's because Void excludes itself from the worker dep optimizer, so
its CommonJS dependency `email-validator` reaches workerd without
conversion.
If Void owns the workerd runtime (no framework, TanStack Start, React
Router, vinext), it now adds `include: ['void > email-validator']`.
Note: This *might* be also the case with hyperdrive and mysql2, but I
couldnt repro this yet.
---------
Co-authored-by: LongYinan <lynweklm@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
0 commit comments