Describe the bug
When trying to debug eslint-plugin-query using breakpoints, the code breaks on the wrong breakpoints. This is probably due to the changes made moving from tsup to vite. More specifically, this line:
|
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] }, |
When commented, the breakpoints are working as expected. I assume it happens because of how istanbul tracks the code coverage.
Your minimal, reproducible example
n/a (bug in the repo itself)
Steps to reproduce
- clone the repo
pnpm i
- set a breakpoint in one of the lines of the packages
eslint-plugin-query
pnpm test:lib:dev
- see that the code stopped on a different line
Expected behavior
I expected the code to stop on the breakpoints I set ahead of time regardless of the coverage settings.
How often does this bug happen?
Every time
Screenshots or Videos


Platform
Tanstack Query adapter
None
TanStack Query version
5.51.9 (irrelevant)
TypeScript version
5.3.3 (irrelevant)
Additional context
I haven't tested this behavior on other packages.
Describe the bug
When trying to debug
eslint-plugin-queryusing breakpoints, the code breaks on the wrong breakpoints. This is probably due to the changes made moving from tsup to vite. More specifically, this line:query/packages/eslint-plugin-query/vite.config.ts
Line 11 in ae8738a
When commented, the breakpoints are working as expected. I assume it happens because of how
istanbultracks the code coverage.Your minimal, reproducible example
n/a (bug in the repo itself)
Steps to reproduce
pnpm ieslint-plugin-querypnpm test:lib:devExpected behavior
I expected the code to stop on the breakpoints I set ahead of time regardless of the coverage settings.
How often does this bug happen?
Every time
Screenshots or Videos
Platform
Tanstack Query adapter
None
TanStack Query version
5.51.9 (irrelevant)
TypeScript version
5.3.3 (irrelevant)
Additional context
I haven't tested this behavior on other packages.