Repro for rolldown/rolldown#3890
This reproduces an issue with Rolldown watch mode where it gets very slow when many files are watched, even when the actual bundling is very fast.
We include 1000 dummy TS files imported into a single entry point in /src/index.ts
. There is a script which can be used to generate files:
node generate-files.mjs 1000
Rolldown can then be started in watch mode with the command:
node rolldown.mjs
We can modify the include
option in rolldown.mjs
to include more or fewer files and see how it affects performance.