Skip to content

Commit c5a2f2b

Browse files
committed
fix(query-devtools): remove experimentalDts to prevent solid-js type leak (#10421)
1 parent 5048e86 commit c5a2f2b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@tanstack/query-devtools": patch
3+
---
4+
5+
Fix solid-js types leaking into bundled .d.ts file
6+
7+
Remove `experimentalDts: true` and `delete tsup_option.dts` from tsup.config.ts to prevent solid-js internal types from being exposed to React projects. Reverts to rollup-plugin-dts which correctly treats solid-js as external.
8+
9+
Fixes #10421

packages/query-devtools/tsup.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ export default defineConfig(() => {
1616

1717
tsup_options.forEach((tsup_option) => {
1818
tsup_option.outDir = 'build'
19-
tsup_option.experimentalDts = true
20-
delete tsup_option.dts
2119
})
2220

2321
return tsup_options

0 commit comments

Comments
 (0)