Repository navigation
revert: "perf(dev/lazy): fetch a lazy route in one request" (#10789) - #10982
Conversation
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. |
✅ Deploy Preview for rolldown-rs canceled.
|
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
Merge activity
|
…10982) <!-- - What is this PR solving? Write a clear and concise description. - Reference the issues it solves (e.g. `fixes #123`). - What other alternatives have you explored? - Are there any parts you think require more attention from reviewers? Also, please make sure you do the following: - Read the Contributing Guidelines at https://rolldown.rs/contribution-guide/. - Check that there isn't already a PR that solves the problem the same way. If you find a duplicate, please help us review it. - Update the corresponding documentation if needed. - Include relevant tests that fail without this PR but pass with it. If the tests are not included, explain why. Thank you for contributing to Rolldown! --> Revert to fix vitejs/vite#23547. This PR will be reverted again once the fix on Vite has landed.
b9dc9f5 to
a75839c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b9dc9f51e4
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…10982) <!-- - What is this PR solving? Write a clear and concise description. - Reference the issues it solves (e.g. `fixes #123`). - What other alternatives have you explored? - Are there any parts you think require more attention from reviewers? Also, please make sure you do the following: - Read the Contributing Guidelines at https://rolldown.rs/contribution-guide/. - Check that there isn't already a PR that solves the problem the same way. If you find a duplicate, please help us review it. - Update the corresponding documentation if needed. - Include relevant tests that fail without this PR but pass with it. If the tests are not included, explain why. Thank you for contributing to Rolldown! --> Revert to fix vitejs/vite#23547. This PR will be reverted again once the fix on Vite has landed.
a75839c to
6f85455
Compare
## [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]>
Conflicted files:
- Cargo.lock: took main's lock, let cargo re-add our entries (arc-swap,
async-broadcast, async-lock, async-task, napi-async-runtime 0.2.3,
parking_lot_core git patch ac046ba4; async-scoped / pin-project dropped),
then re-applied our event-listener 5.4.2 pin (RUSTSEC-2026-0221).
- pnpm-workspace.yaml: kept main's oxc 0.152.0 pins and the removed
vitepress>vite override; kept our emnapi override and catalog entries
(@napi-rs/cli ^3.10.5, async-runtime, buffer, miniflare, wrangler).
- pnpm-lock.yaml: took main's lock and ran pnpm install; only our
packages and catalog entries were added.
- crates/rolldown_fs_watcher/src/{lib.rs,watcher.rs}: kept main's
FsWatcher (owns the watched paths, watch_paths/is_watched, event
translation in notify/). Replaced our PathsSource trait with a seam on
the new shape: FsWatcher::with_backend plus public WatcherBackend /
PathsMut, try_watch_paths (a refused add is an error, still commits,
aggregates add+commit errors) and is_registered (exact membership).
- crates/rolldown_watcher/src/task_fs_event_handler.rs: GroupFsEventHandler
(ours) now forwards main's FsEvent batches.
- crates/rolldown_watcher/src/watch_task.rs: kept per-group shared watcher
and per-task watched_files; the group registered-path set is now the
shared FsWatcher's own set (group_registered_files removed); build watch
registers through try_watch_paths so add failures still drive the
backoff retry. TaskFsWatcher alias removed.
- crates/rolldown_dev/src/{bundle_coordinator.rs,watcher_event_handler.rs,
types/coordinator_msg.rs,dev_engine.rs}: dev takes main's FsWatcher-owned
path set and Vec<FsEvent> messages; kept our watch-registration error
observers, the extra-path union and unbounded_send; kept both dev_engine
tests.
- crates/rolldown_dev/src/bundling_task.rs: kept main's resolver cache
clear (#10986) on our DevCallbackResult-returning run().
- crates/rolldown_binding/src/types/binding_magic_string.rs: kept our
fallible accessors, renamed to oxc_sourcemap 9's ignore_list.
- internal-docs/{watch-mode,dev-engine}/implementation.md: merged both
sides; describe the group watcher on top of FsWatcher's path set.
- packages/rolldown/build.ts: kept our WASI/workerd loader bundling and
workerdPackageApi define, took main's buildRuntimeEntry /
generateRuntimeTypes and always-inlined __RUNTIME_STRING__, kept our
WebContainer fallback that adopts the loader's __napiBindingTarget.
- packages/rolldown/tests/dev/dev-lazy-compile.test.ts: took main's
removal of the tests for the reverted lazy one-request fetch (#10982);
our skipIf(isSingleThread) guards on the remaining tests stay.
- packages/rolldown/src/rolldown-binding.wasi.cjs: generated; seeded from
our side (main's metadata lacks the async-runtime host exports and the
native re-emit refuses it), then regenerated.
Semantic adaptation:
- Test fakes in rolldown_watcher / rolldown_dev implement WatcherBackend
and are built with FsWatcher::with_backend; assertions on the group set
query the shared watcher.
- __internalForcePanic (#10989) removed from binding-workerd-proxy.ts and
from the regenerated wasip1 loaders.
Regeneration order: just build-rolldown, pnpm build-binding:wasi,
pnpm build-binding:wasi-single, just build-rolldown.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01T34fMrYCf2V13Mg8BKmnda

Revert to fix vitejs/vite#23547.
This PR will be reverted again once the fix on Vite has landed.