Repository navigation
refactor(watch): let FsWatcher own the watched paths - #10948
Merged
shulaoda merged 1 commit intoSep 23, 2026
Merged
Conversation
✅ Deploy Preview for rolldown-rs canceled.
|
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
shulaoda
force-pushed
the
09-22-refactor_watch_let_fswatcher_own_the_watched_paths
branch
from
September 22, 2026 08:44
b3326c6 to
63ed497
Compare
shulaoda
marked this pull request as ready for review
September 22, 2026 08:48
Merging this PR will not alter performance
Comparing Footnotes
|
shulaoda
force-pushed
the
09-22-refactor_watch_let_fswatcher_own_the_watched_paths
branch
3 times, most recently
from
September 22, 2026 09:31
3d36e39 to
975b59e
Compare
hyfdev
approved these changes
Sep 22, 2026
shulaoda
force-pushed
the
09-22-refactor_watch_let_fswatcher_own_the_watched_paths
branch
from
September 23, 2026 02:16
975b59e to
d939ae2
Compare
shulaoda
deleted the
09-22-refactor_watch_let_fswatcher_own_the_watched_paths
branch
September 23, 2026 02:27
Merged
shulaoda
added a commit
that referenced
this pull request
Sep 23, 2026
## [1.2.10] - 2026-09-23 ### 🚀 Features - rolldown_plugin_esm_external_require: prefer 'module.exports' over a namespace spread (#10901) by @isker - watch: support directories in addWatchFile (#10944) by @shulaoda - label code-splitting timing rows (#10896) by @IWANABETHATGUY - separate code-splitting group timing rows (#10892) by @IWANABETHATGUY - clarify callback owners in the timing report (#10890) by @IWANABETHATGUY - add checks.bundlerTimings with deprecated pluginTimings alias (#10883) by @IWANABETHATGUY ### 🐛 Bug Fixes - code-splitting: initialize leaves behind a re-exported namespace import (#10694) by @hyfdev - node: record the WASI target on the WebContainer binding fallback (#10952) by @shulaoda - dev: force incremental build on in DevEngine::new (#10958) by @o-alexandrov - tree-shaking: propagate side effects through cycles (#10893) by @IWANABETHATGUY - deconflict CJS locals that shadow a renamed require wrapper (#10793) by @logaretm - include group indexes in labeled `codeSplitting` timing rows (#10916) by @IWANABETHATGUY - docs: type-check Algolia `indices` option (#10934) by @shulaoda - docs: restore Algolia search (#10929) by @isker - tell code-splitting timing rows apart by position (#10903) by @IWANABETHATGUY ### 🚜 Refactor - rolldown_fs_watcher: remove the single-path API (#10950) by @shulaoda - dev: register watch files through FsWatcher (#10949) by @shulaoda - watch: let FsWatcher own the watched paths (#10948) by @shulaoda - watch: identify watch files by normalized absolute path (#10943) by @shulaoda - plugin: build a plugin-resolved `ResolvedId` in one place (#10921) by @IWANABETHATGUY ### 📚 Documentation - dev: add HMR design, align dev docs and engine comments (#10271) by @h-a-n-a ### ⚡ Performance - batch `sourcemapPathTransform` calls (#10763) by @IWANABETHATGUY - batch `sourcemapIgnoreList` calls (#10762) by @IWANABETHATGUY - hmr: drop the unused kind argument from registerFactory (#10915) by @h-a-n-a ### 🧪 Testing - handle Windows paths in sourcemap callback tests (#10942) by @IWANABETHATGUY ### ⚙️ Miscellaneous Tasks - replace custom `ban-expect-assertions` JS lint with builtin `no-restricted-properties` (#10933) by @isker - deps: update napi (#10959) by @renovate[bot] - deps: upgrade oxc to 0.151.0 (#10939) by @camc314 - deps: update test262 submodule for tests (#10941) by @rolldown-guard[bot] - deps: update npm packages (#10931) by @renovate[bot] - deps: update napi (#10928) by @renovate[bot] - deps: update dependency vite-plus to v0.3.3 (#10914) by @renovate[bot] - deps: update rust crates (#10932) by @renovate[bot] - deps: update github actions (#10930) by @renovate[bot] - deps: update dependency rolldown-plugin-dts to v0.28.6 (#10924) by @renovate[bot] - deps: update crate-ci/typos action to v1.50.2 (#10917) by @renovate[bot] - deps: update dependency @napi-rs/cli to v3.10.4 (#10913) by @renovate[bot] - deps: update napi (#10897) by @renovate[bot] ### ❤️ New Contributors * @o-alexandrov made their first contribution in [#10958](#10958) Co-authored-by: shulaoda <[email protected]>
12 of 15 tasks
Brooooooklyn
added a commit
that referenced
this pull request
Sep 30, 2026
retained-build-context.test.ts: main commit cfc9d19 (#10948) changed NativePluginContextImpl::add_watch_file to store WatchPath::new(file, cwd), so bundle.watchFiles now holds the id resolved against cwd and normalized instead of the raw string. The writeBundle cases now expect path.resolve(watchedId) (cwd defaults to process.cwd()). The intent is unchanged: a late addWatchFile from a retained buildStart/buildEnd context under write() still lands in bundle.watchFiles. dev/dev-runtime.test.ts: main commit 57dfa85 (#10998) added the case "devMode injects the common runtime and the default client as their exact source", which calls dev(). On this branch dev() is gated on a MultiThread runtime (devSupported = threads) and the CurrentThread flavor throws UnsupportedRuntimeFeatureError, so the case now uses test.skipIf(isSingleThread), the same guard the dev-lazy-compile cases use. It still runs and passes on native. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01T34fMrYCf2V13Mg8BKmnda
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.
Move the set of watched paths into
FsWatcher, which registers new paths and answers whether a change concerns one, and use it in build watch.