Skip to content

revert: "perf(dev/lazy): fetch a lazy route in one request" (#10789) - #10982

Merged
graphite-app[bot] merged 1 commit into
mainfrom
revert/lazy-route-one-request
Sep 24, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
revert/lazy-route-one-request

Conversation

@h-a-n-a

@h-a-n-a h-a-n-a commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Revert to fix vitejs/vite#23547.

This PR will be reverted again once the fix on Vite has landed.

h-a-n-a commented Sep 24, 2026

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add 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.

@netlify

netlify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

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

@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 ↗
6f85455 2026-09-24T08:53:01.696Z View logs ↗
  • Build: Failed ❌

View logs ↗
a75839c 2026-09-24T08:48:26.320Z View logs ↗
  • Build: Failed ❌

View logs ↗
b9dc9f5 2026-09-24T08:14:05.999Z View logs ↗

h-a-n-a commented Sep 24, 2026 •

Copy link
Copy Markdown
Member Author

Merge activity

  • Sep 24, 8:45 AM UTC: The merge label 'graphite: merge-when-ready' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Sep 24, 8:45 AM UTC: h-a-n-a added this pull request to the Graphite merge queue.
  • Sep 24, 8:57 AM UTC: Merged by the Graphite merge queue.

graphite-app Bot pushed a commit that referenced this pull request Sep 24, 2026
…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.
@graphite-app
graphite-app Bot force-pushed the revert/lazy-route-one-request branch from b9dc9f5 to a75839c Compare September 24, 2026 08:46

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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.
@graphite-app
graphite-app Bot force-pushed the revert/lazy-route-one-request branch from a75839c to 6f85455 Compare September 24, 2026 08:50
@graphite-app
graphite-app Bot merged commit 6f85455 into main Sep 24, 2026
36 of 37 checks passed
@graphite-app
graphite-app Bot deleted the revert/lazy-route-one-request branch September 24, 2026 08:57
@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]>
Brooooooklyn added a commit that referenced this pull request Sep 30, 2026
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

This branch had an error being deployed

1 failed deployment
crates — 6f854553 Deployed Sep 24, 2026 by graphite-app[bot] via Release crates #27
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.

Every dynamic import fails under experimental.bundledDev with vite 8.3.0 + rolldown 1.2.9: __rolldown_runtime__.requestLazy is not a function

3 participants