Commit 0efd9fb
fix: add protobufjs Long polyfill for native binary compilation
Bun's native compilation doesn't handle protobufjs dynamic Long loading.
Pre-initialize protobuf.util.Long before Baileys import to fix runtime error.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent c8aba72 commit 0efd9fb
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments