Fix HMR import.meta.hot for Bun static analysis #1

Merged
defunkt merged 1 commits from probablycorey/forge:fix/hmr-static-analysis into main 2026-01-21 00:02:47 +00:00

1 Commits

Author SHA1 Message Date
8484553029 Fix HMR import.meta.hot for Bun static analysis
Use direct conditional instead of optional chaining so Bun can
statically analyze and remove the HMR block in production builds.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 10:46:15 -08:00