sveltejs / sveltejs/kit

`vite build --watch` bugs

Open
#16,708 0 comments 0 reactions 0 assignees View on GitHub

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 config plugin 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.client and service-worker don't)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.