Commit 1d5aa55
Fix ESM module loading for Node.js 18 compatibility
- Replace Function constructor with eval for better Node 18 compatibility
- Add proper error handling with helpful messages
- Escape single quotes to prevent injection
- This fixes CI failures with ora package in Node.js 18 environment
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6d99c80 commit 1d5aa55
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
10 | 18 | | |
0 commit comments