Skip to content

fix: clean stale declarations when watch misses a deletion - #98

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-watch-declaration-cleanup
Nov 27, 2026
Merged

chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-watch-declaration-cleanup

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

Deleting a stylesheet and removing its import in the same rebuild could leave its generated .d.ts behind when the watcher missed the deletion. With clean enabled, watch builds now check stylesheets that have left the dependency graph and remove the generated declaration if its source is gone. The regression test suppresses CSS watch events and triggers a rebuild through the entry file.

Related Links

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T05:25:31.415917Z 2820fe9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chenjiahan
chenjiahan merged commit 0a73223 into main Nov 27, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-watch-declaration-cleanup branch November 27, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant