Reproduction link or steps
this is my config
`import { defineConfig } from 'tsdown'
export default defineConfig([
{
entry: {
'index.ts': 'src/node/index.ts'
},
outDir: 'dist/node',
},
{
entry: {
'index.ts': 'src/client/index.ts'
},
outDir: 'dist/client',
}
])`
The cause is that when there are multiple configs, two watches are initiated, which monitor all files in the same directory level as tsdown.config.ts. For instance, when dist/client is updated, the second watch is triggered, thus leading to a loop.
tsup doesn't have this issue because it ignores outDir by default.
reproducition:https://github.com/Triumph-light/tsup-tsdown-compare
What is expected?
No Loop
What is actually happening?
Infinite Loop
Any additional comments?
No response