diff --git a/.changeset/fix-solid-js-type-leak.md b/.changeset/fix-solid-js-type-leak.md new file mode 100644 index 00000000000..4426f30e26b --- /dev/null +++ b/.changeset/fix-solid-js-type-leak.md @@ -0,0 +1,9 @@ +--- +"@tanstack/query-devtools": patch +--- + +Fix solid-js types leaking into bundled .d.ts file + +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. + +Fixes #10421 diff --git a/packages/query-devtools/tsup.config.ts b/packages/query-devtools/tsup.config.ts index afcd5798312..854110ec19d 100644 --- a/packages/query-devtools/tsup.config.ts +++ b/packages/query-devtools/tsup.config.ts @@ -16,8 +16,6 @@ export default defineConfig(() => { tsup_options.forEach((tsup_option) => { tsup_option.outDir = 'build' - tsup_option.experimentalDts = true - delete tsup_option.dts }) return tsup_options