Commit Graph

4 Commits

Author SHA1 Message Date
Claude Bot
ee31d232c2 fix(bundler): HTML entrypoint hash now updates when dependencies change
Previously, HTML chunk hashes were not recomputed when their JS/CSS dependencies
changed because the isolated_hash computation for HTML chunks didn't account for
the hashes of their dependencies. This caused browsers to cache stale HTML files
that referenced old asset URLs, leading to 404 errors.

The fix:
1. Added generateIsolatedHashWithChunks() that accepts a chunks array
2. HTML chunks now include their JS/CSS dependencies' hashes in their own hash
3. Process non-HTML chunks before HTML chunks to ensure dependency hashes are computed

This ensures HTML files get new hashes when their dependencies change, preventing
browser caching issues reported in https://github.com/NDC-Tourney/stream-overlay/pull/40

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 09:22:12 +00:00
taylor.fish
437e15bae5 Replace catch bun.outOfMemory() with safer alternatives (#22141)
Replace `catch bun.outOfMemory()`, which can accidentally catch
non-OOM-related errors, with either `bun.handleOom` or a manual `catch
|err| switch (err)`.

(For internal tracking: fixes STAB-1070)

---------

Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2025-08-26 12:50:25 -07:00
pfg
83760fc446 Sort imports in all files (#21119)
Co-authored-by: taylor.fish <contact@taylor.fish>
2025-07-21 13:26:47 -07:00
Zack Radisic
fa1d37b4e3 Split bundler up into multiple files (#20192) 2025-06-06 18:34:18 -07:00