Commit 66c7e6c
fix: use __require fallback for __dirname to support Node < 20.11.0
`import.meta.dirname` is unavailable before Node 20.11.0. The previous
fallback was dropped because `path`/`fileURLToPath` weren't in scope at
that point in the bun-generated __commonJS IIFE. Using `__require` (a
module-level closure bun always emits) works at any Node version.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f90f52a commit 66c7e6c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments