fix: use --preload= for bun compatibility#52
fix: use --preload= for bun compatibility#52Emeralddddd wants to merge 1 commit intonmhjklnm:masterfrom
Conversation
Bun requires --preload=<path> (equals sign) syntax; space-separated form silently fails to load the preload script.
nmhjklnm
left a comment
There was a problem hiding this comment.
I found one blocking issue.
src/templates.sh changes the BUN_OPTIONS form from --preload <path> to --preload=<path>, but this does not appear to fix the actual problem. I tested both forms locally against Bun 1.1.29 using a compiled standalone executable (the scenario Bun documents for BUN_OPTIONS), and in both cases the preload script was still not loaded.
So the current PR changes syntax, but does not demonstrate that CAC hooks (cac-dns-guard.js / fingerprint-hook.js) will actually be injected in the Bun executable case.
Please add an end-to-end validation against a compiled Bun executable / real Claude binary before merging. Right now this looks like it changes the spelling without fixing the behavior.
Summary
--preload <path>to--preload=<path>(equals sign syntax) for both dns-guard and fingerprint-hook BUN_OPTIONS=form; space-separated form silently fails to load preload scriptsTest plan
bunruntimebunruntimenoderuntime (NODE_OPTIONS unchanged)