Commit 4c2b609
fix(build): work around @turf/unkink-polygon missing types exports condition
The package's "exports" field has no "types" condition, so TypeScript
with moduleResolution:bundler cannot link the ESM import to index.d.ts.
Switch to require() which bypasses exports-field resolution and add an
explicit return-type cast so downstream uses are still fully typed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 43b70fb commit 4c2b609
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
6 | 13 | | |
7 | 14 | | |
8 | 15 | | |
| |||
0 commit comments