Skip to content

refactor(rolldown_fs_watcher): collapse fs-watcher backends behind a single FsWatcher - #10735

Merged
shulaoda merged 1 commit into
mainfrom
refactor/fs-watcher-unify
Aug 24, 2026
Merged

shulaoda merged 1 commit into
mainfrom
refactor/fs-watcher-unify

Conversation

@shulaoda

@shulaoda shulaoda commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Description

rolldown_fs_watcher used to expose a public FsWatcher trait plus several concrete types (Recommended, Poll, their debounced variants, and Noop). Callers then had to pick a type, or go through create_fs_watcher / DynFsWatcher / NoopFsWatcher.

This PR keeps one public type: FsWatcher. Construction reads FsWatcherConfig and picks the notify backend internally.

  • enabled: false → noop backend (used by the dev engine when watching is off)
  • use_polling × use_debounce → poll/recommended × immediate/debounced

Notes for reviewers

  • FsWatcherConfig.enabled replaces the old NoopFsWatcher special case in DevEngine.
  • Internal watch-mode docs are updated in the follow-up PR on this stack.

@netlify

netlify Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit bb63203
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6a8be8579c63780007895386

@shulaoda
shulaoda marked this pull request as ready for review August 21, 2026 09:33
@shulaoda shulaoda changed the title refactor: collapse fs-watcher backends behind a single FsWatcher refactor(rolldown_fs_watcher): collapse fs-watcher backends behind a single FsWatcher Aug 21, 2026
@codspeed

codspeed Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing refactor/fs-watcher-unify (bb63203) with main (b9d950c)

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 refactor/fs-watcher-unify branch from 07a6058 to bb63203 Compare August 24, 2026 06:44
@shulaoda
shulaoda merged commit 0635cd2 into main Aug 24, 2026
35 checks passed
@shulaoda
shulaoda deleted the refactor/fs-watcher-unify branch August 24, 2026 06:50
@rolldown-guard rolldown-guard Bot mentioned this pull request Aug 26, 2026
shulaoda added a commit that referenced this pull request Aug 26, 2026
## [1.2.6] - 2026-08-26

### 🚀 Features

- minify: support property name mangling (#10374) by @Dunqing
- add `tsconfig: string` option to `transform` (#10727) by @sapphi-red
- rolldown_plugin_vite_transform: add `tsconfig` option (#10725) by @sapphi-red
- rolldown_plugin_vite_resolve: add top-level `tsconfig` option (#10724) by @sapphi-red
- dev: expose module graph queries on the dev engine handle (#10716) by @h-a-n-a

### 🐛 Bug Fixes

- dev: assign import bindings before initializing dependencies (#10783) by @h-a-n-a
- dev: copy star re-exports before initializing dependencies (#10761) by @h-a-n-a
- dev: register an empty exports object for a module without exports (#10772) by @h-a-n-a
- name the module when a `codeSplitting` group callback returns a wrong type (#10753) by @IWANABETHATGUY
- dev: map dev rename events like build watch (#10758) by @shulaoda
- clear resolution cache when `TsconfigCache::clear` is called (#10726) by @sapphi-red
- dev: resolve in-flight `ensureLatestBuildOutput` when the engine closes (#10730) by @h-a-n-a
- binding: replace undeclared BindingErrorsOr with BindingResult in hook types (#10717) by @h-a-n-a

### 🚜 Refactor

- rolldown_fs_watcher: collapse fs-watcher backends behind a single FsWatcher (#10735) by @shulaoda
- hoist invariants out of the `codeSplitting` group loop (#10744) by @IWANABETHATGUY

### 📚 Documentation

- document shared notify rename mapping (#10759) by @shulaoda
- update watch-mode internals for unified FsWatcher (#10736) by @shulaoda

### ⚡ Performance

- batch `codeSplitting` group `test` / `name` calls (#10745) by @IWANABETHATGUY
- deduplicate used symbol ref readers (#10742) by @Boshen
- reduce release debug formatting (#10728) by @Boshen
- enable compiler cache via `module.enableCompileCache()` (#10678) by @btea
- deduplicate regress codegen (#10732) by @Boshen

### 🧪 Testing

- define: add expected failure for default parameter scope (#10780) by @hyfdev
- use an absolute filename for transform tsconfig path (#10782) by @shulaoda

### ⚙️ Miscellaneous Tasks

- deps: upgrade oxc to 0.147.0 (#10767) by @camc314
- deps: update resolver dependencies (#10766) by @Boshen
- deps: update rollup submodule for tests to v4.62.5 (#10770) by @rolldown-guard[bot]
- deps: update dependency vite-plus to ^0.3.0 (#10757) by @renovate[bot]
- deps: update npm packages (#10750) by @renovate[bot]
- deps: update rust crates (#10748) by @renovate[bot]
- deps: update rust crate napi to v3.12.2 (#10738) by @renovate[bot]
- deps: update dependency rust to v1.98.0 (#10733) by @renovate[bot]
- wasi: cap each Node Test attempt with timeout to survive hangs (#10709) by @hyfdev

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.

2 participants