Commit afa104c
fix: resolve leaflet markercluster ESM build failure under pnpm
Use esmExternals loose and transpile @changey/react-leaflet-markercluster so its CJS dist can require @react-leaflet/core during Next.js production builds.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 957ebe8 commit afa104c
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
| |||
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
137 | | - | |
138 | | - | |
| 141 | + | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| |||
0 commit comments