You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like manifest plugin doesn't reset properly between watch rebuild. What's the intent of not resetting this.manifest too? The issue reproduces on Vite 5 as well.
(For the context, I was investigating a similar issue on double rsc environment builds with rolldown-vite hi-ogawa/vite-environment-examples#154. Though my issue somehow doesn't show up on current vite, I just found a similar issue with current vite's watch build.)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
It looks like manifest plugin doesn't reset properly between watch rebuild. What's the intent of not resetting
this.manifest
too? The issue reproduces on Vite 5 as well.vite/packages/vite/src/node/plugins/manifest.ts
Lines 30 to 39 in 6dbd4b0
(For the context, I was investigating a similar issue on double rsc environment builds with rolldown-vite hi-ogawa/vite-environment-examples#154. Though my issue somehow doesn't show up on current vite, I just found a similar issue with current vite's watch build.)
Reproduction
https://stackblitz.com/github/hi-ogawa/reproductions/tree/main/rolldown-vite-watch-build-manifest?file=src%2Fmain.js
Steps to reproduce
vite build --watch
dist/.vite/manifest.json
includessrc/dep.js
src/main.js
to removeimport("./dep.js")
dist/.vite/manifest.json
still includessrc/dep.js
System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: vite: ^6 => 6.0.11
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: