Commit 9ce1c98
Tajudeen
fix: mark React output imports as external at tsup level to prevent build errors
- Add function matcher to external array for React output imports
- Fixes 'Could not resolve' errors during React build
- tsup checks external array during its own resolution phase (before esbuild)
- Plugin approach was too late - tsup resolves imports before esbuild plugins run
- React outputs are now marked external early enough to prevent resolution failures
This fixes the issue where tsup tried to resolve React output imports
from files outside the React directory (e.g., cortexideSettingsPane.ts)
before those output files existed.1 parent 0449679 commit 9ce1c98
1 file changed
Lines changed: 13 additions & 2 deletions
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
70 | 81 | | |
71 | 82 | | |
72 | 83 | | |
| |||
0 commit comments