Commit 6d814e6
committed
Add exports field for TS source access by bundlers
Expose TS source via "import" condition so Vite/esbuild consume
TypeScript directly. CJS consumers still get compiled JS via "require".
Added wildcard subpath exports for deep imports (js/*, ts/*).1 parent 2e31d10 commit 6d814e6
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
27 | 36 | | |
28 | 37 | | |
29 | 38 | | |
| |||
0 commit comments