Repository navigation
Revert "chore: remove dependency on chokidar" - #16641
Merged
Merged
Conversation
This reverts commit eb3d948.
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/89349d3e4cc6b1206dc6118106d76c2d648ee8d4Open in |
|
teemingc
approved these changes
Aug 4, 2026
teemingc
added a commit
that referenced
this pull request
Nov 13, 2026
…watch mode (#17519) - Watch creation uses normalized `file.dest`, but deletion used source `file.name`, leaving compiled JavaScript and custom-extension Svelte outputs behind. - Reuse the writer’s output mapping rather than special-casing TypeScript; retain incremental cleanup introduced in [#4658](#4658) and preserved through [#8922](#8922). - Keep chokidar rename handling ([#16641](#16641)) and unrelated output preservation ([#13055](#13055)) instead of rebuilding or wiping output on deletion. - Cover TypeScript/declaration removal, custom-extension directory renames, and empty-directory cleanup. Fixes #17518 <!-- svelte-triage-bot:feedback-baseline:26cc741518be003772b96099701173a8f5534c95 --> --------- Co-authored-by: svelte-triage-bot <[email protected]> Co-authored-by: Tee Ming <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #16621 — doing this rather than fixing it because it's not a Kit 3 priority.
This broke stuff silently (because
watchtests don't run in CI). The issue is that renames aren't properly accounted for — renaming a directoryfootobar(orsubtosub2in the test) means that pendingunlinkevents are created for everything insidefoo, with no corresponding events for the files that are now insidebar. As a result, files are removed from the output directory instead of being renamed (or recreated).