Closed Paolino95 closed 6 months ago
Start a new pull request in StackBlitz Codeflow.
vite-plugin-dts
and rollup-plugin-sourcemaps
: happensvite-plugin-dts
and without rollup-plugin-sourcemaps
: doesn't happenvite-plugin-dts
and withrollup-plugin-sourcemaps
: watch mode broken (due to rollup-plugin-sourcemaps incompatible with the rollup 4.0.0+)vite-plugin-dts
and rollup-plugin-sourcemaps
: doesn't happenI think it's happening because rollup-plugin-sourcemaps
is not compatible with rollup 4.0.0+, specifically this change.
Closing as this is not a bug in Vite.
Describe the bug
Good morning,
I report the fact that
Vite build
, inwatch
mode, builds and remains correctly active in the first build, but following the first change the build is re-run and terminated, without remaining active waiting for further changes.The problem seems different from other old (and solved) issues, such as https://github.com/vitejs/vite/issues/12852 or https://github.com/vitejs/vite/issues/12791;
In fact, by doing some testing, I noticed that in my specific case I find the issue using TypeScript, also going through the generation of type files through https://github.com/qmhc/vite-plugin-dts.
Writing code in JS I noticed that I don't have this problem. Now I can't figure out if this problem is related to TS or to the plugin itself, or either.
Reproduction
https://stackblitz.com/edit/vitejs-vite-czcsmo?file=src%2Fvite-env.d.ts
Steps to reproduce
Run
npm install
, thennpm build:lib:watch
.Change something in
lib/main.ts
.You will see that the build will terminate, without staying in watch mode.
System Info
Used Package Manager
npm
Logs
No response
Validations