`vite build --watch` bugs
Open
Nobody has claimed this yet.
blocked by upstream
vite
- Dominant language
- JavaScript
- Stars
- 20.8k
- Forks
- 2.3k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 156
Description
On Vite's side:
- it doesn't re-run
configplugin hooks - changing the Vite config (and now Svelte config) doesn't restart the build and apply latest changes
On the SvelteKit side:
- only files fed to the server build input cause rebuilds (
hooks.clientandservice-workerdon't)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported cases with vite build --watch: changing config, observing config plugin hooks, and modifying SvelteKit inputs such as hooks.client and service-worker. Trace which inputs trigger the server build and verify that configuration changes restart the build and all relevant inputs cause rebuilds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vite
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100