Commit b0a695e
committed
fix(unplugin-dts): publicRoot mismatch of TS 6.0 rootDir
TypeScript 6.0 changes the default rootDir settings from the public
ancestor of source files to the directory of tsconfig.json. This causes
the default value of publicRoot mismatched to the resolution after an
internal TS compilation callback of file paths. When bundling types,
the built .d.ts cannot add any import from the built entry which results
in an empty module due to this mismatch.
fix #4671 parent 051f2ea commit b0a695e
1 file changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
284 | 289 | | |
285 | 290 | | |
286 | 291 | | |
| |||
0 commit comments