Commit d9877b3
fix: unix-crypt-td-js import for SWC CJS interop
SWC gives the function directly with `import * as`, but tsc sees a
namespace object. Use a type cast to bridge the mismatch. Reverts the
default import that caused `crypt.default is not a function` at runtime.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent bb4e9c7 commit d9877b3
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
0 commit comments