Commit c1a5c74
fix: add tsup --shims for ESM/CJS dirname compatibility (#308)
Bare __dirname is a CJS-only global and is undefined in ESM contexts.
Enable tsup --shims so both the ESM and CJS builds get proper polyfills
for __dirname, __filename, and import.meta.url respectively.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c52e50e commit c1a5c74
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments