Skip to content

refactor(rolldown_fs_watcher): register every path with one watch mode - #10978

Merged
shulaoda merged 1 commit into
mainfrom
09-24-refactor_fs_watcher_register
Sep 24, 2026
Merged

shulaoda merged 1 commit into
mainfrom
09-24-refactor_fs_watcher_register

Conversation

@shulaoda

@shulaoda shulaoda commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

PathsMut::add(path): rolldown always watches a directory with everything below it and tracks a missing path, so the watch mode is decided in one place.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
a2f7dc9 2026-09-24T09:06:25.058Z View logs ↗
  • Build: Failed ❌

View logs ↗
4d7c6fe 2026-09-24T08:48:05.340Z View logs ↗
  • Build: Failed ❌

View logs ↗
0efe216 2026-09-24T08:37:16.859Z View logs ↗
  • Build: Failed ❌

View logs ↗
188f155 2026-09-24T08:30:44.314Z View logs ↗
  • Build: Failed ❌

View logs ↗
d294e6e 2026-09-24T08:17:21.572Z View logs ↗
  • Build: Failed ❌

View logs ↗
bb128eb 2026-09-24T07:38:06.733Z View logs ↗
  • Build: Failed ❌

View logs ↗
7072274 2026-09-24T04:33:07.298Z View logs ↗

@shulaoda
shulaoda added this pull request to stack #10976 September 24, 2026 04:30
@netlify

netlify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit a2f7dc9
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6ab4e7821131540008e08bbb
😎 Deploy Preview https://deploy-preview-10978--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@shulaoda shulaoda changed the title refactor(fs_watcher): register every path with one watch mode refactor(rolldown_fs_watcher): register every path with one watch mode Sep 24, 2026
@shulaoda
shulaoda marked this pull request as ready for review September 24, 2026 04:49
@codspeed

codspeed Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing 09-24-refactor_fs_watcher_register (a2f7dc9) with main (6f85455)

Open in CodSpeed

Footnotes

  1. 10 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@shulaoda
shulaoda force-pushed the 09-24-refactor_fs_watcher_register branch from 7072274 to bb128eb Compare September 24, 2026 07:36
@shulaoda
shulaoda force-pushed the 09-24-refactor_fs_watcher_register branch from bb128eb to d294e6e Compare September 24, 2026 08:15
@shulaoda
shulaoda force-pushed the 09-24-refactor_fs_watcher_register branch 2 times, most recently from 188f155 to 0efe216 Compare September 24, 2026 08:35
Base automatically changed from 09-24-refactor_fs_watcher_notify_module to main September 24, 2026 08:46
@shulaoda
shulaoda force-pushed the 09-24-refactor_fs_watcher_register branch from 0efe216 to 4d7c6fe Compare September 24, 2026 08:46
@shulaoda
shulaoda force-pushed the 09-24-refactor_fs_watcher_register branch from 4d7c6fe to a2f7dc9 Compare September 24, 2026 09:04
@shulaoda
shulaoda merged commit 637a47f into main Sep 24, 2026
35 of 36 checks passed
@shulaoda
shulaoda deleted the 09-24-refactor_fs_watcher_register branch September 24, 2026 09:08
@rolldown-guard rolldown-guard Bot mentioned this pull request Sep 24, 2026
shulaoda added a commit that referenced this pull request Sep 24, 2026
## [1.2.11] - 2026-09-24

### 🚀 Features

- watch: report only file events (#10974) by @shulaoda

### 🐛 Bug Fixes

- sourcemap: preserve names through `collapse_sourcemaps` (#9486) by @eoin
- watch: map metadata events by kind and missing paths as deleted (#10973) by @shulaoda

### 🚜 Refactor

- rolldown_fs_watcher: hand the handler file events instead of notify results (#10980) by @shulaoda
- rolldown_fs_watcher: share one event handler adapter between the notify watchers (#10979) by @shulaoda
- rolldown_fs_watcher: register every path with one watch mode (#10978) by @shulaoda
- rolldown_fs_watcher: tweak the backend traits and the event mapping (#10977) by @shulaoda
- watch: translate notify events inside FsWatcher (#10972) by @shulaoda

### 📚 Documentation

- watch: update the fs watcher layout and the dev coordinator message (#10981) by @shulaoda
- watch: document the event translation in FsWatcher (#10975) by @shulaoda

### ◀️ Revert

- "perf(dev/lazy): fetch a lazy route in one request" (#10789) (#10982) by @h-a-n-a

### ❤️ New Contributors

* @eoin made their first contribution in [#9486](#9486)

Co-authored-by: shulaoda <[email protected]>
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.

3 participants