Commit e787f36
committed
fix(logger): fix winston-daily-rotate-file import for webpack bundling 🔧
- Use require() instead of ES6 import for winston-daily-rotate-file
- Handle both CommonJS and ES module exports
- Fixes 'DailyRotateFile is not a constructor' error in webpack bundle1 parent 37b32ae commit e787f36
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
0 commit comments