Conversation
❌ Deploy Preview for rolldown-rs failed.
|
How to use the Graphite Merge QueueAdd the label graphite: merge-when-ready to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
@rolldown/browser
@rolldown/debug
@rolldown/pluginutils
rolldown
@rolldown/binding-android-arm64
@rolldown/binding-darwin-arm64
@rolldown/binding-darwin-x64
@rolldown/binding-freebsd-x64
@rolldown/binding-linux-arm-gnueabihf
@rolldown/binding-linux-arm64-gnu
@rolldown/binding-linux-arm64-musl
@rolldown/binding-linux-ppc64-gnu
@rolldown/binding-linux-s390x-gnu
@rolldown/binding-linux-x64-gnu
@rolldown/binding-linux-x64-musl
@rolldown/binding-openharmony-arm64
@rolldown/binding-wasm32-wasi
@rolldown/binding-win32-arm64-msvc
@rolldown/binding-win32-x64-msvc
commit: |
There was a problem hiding this comment.
Pull request overview
This PR enables the file system watcher functionality in WASI/Wasm builds by removing the #[cfg(not(target_family = "wasm"))] guards that previously disabled it, relying on updated versions of rolldown-notify (10.2.0) and rolldown-notify-debouncer-full (0.7.5) which presumably add WASI support.
Changes:
- Remove WASI/Wasm cfg guards from
rolldown_fs_watcherto enable real fs watching in Wasm targets - Bump
rolldown-notifyandrolldown-notify-debouncer-fullto versions with WASI support - Remove the
NoopFsWatcherfallback inwatcher.rsthat was used for Wasm targets
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
crates/rolldown_watcher/src/watcher.rs |
Removes cfg guards and the NoopFsWatcher Wasm fallback |
crates/rolldown_fs_watcher/src/utils.rs |
Removes non_wasm module gating for DebounceEventHandlerAdapter |
crates/rolldown_fs_watcher/src/lib.rs |
Removes cfg guards on poll and debounced watcher modules |
crates/rolldown_fs_watcher/Cargo.toml |
Moves rolldown-notify-debouncer-full from wasm-gated to unconditional dependency |
Cargo.toml |
Bumps rolldown-notify to 10.2.0 and rolldown-notify-debouncer-full to 0.7.5 |
Merge activity
|
Benchmarks Rust |
Not if this helps #8563 but might be related.
Not if this helps #8563 but might be related.
|
Done in #8575 |

It still doesn't seem to work perfectly, but I confirmed that it sometimes works.
https://stackblitz.com/edit/rolldown-rolldown-starter-stackblitz-bkk1awfz?file=src%2Fentry.js
I get the following panic sometimes:
It might be related to rust-lang/rust@dfbb0fd, but we are blocked by rust-lang/rust#153475 to try 1.94.0 so leaving it for now.
refs #2778, #5051, rolldown/notify#67