Skip to content

refactor(dev): ship the dev runtime entry as one file - #10998

Merged
graphite-app[bot] merged 1 commit into
mainfrom
feat/dev-runtime-single-file
Sep 28, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
feat/dev-runtime-single-file

Conversation

@h-a-n-a

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

Copy link
Copy Markdown
Member

Resolves vitejs/vite#23568 (comment)

Merging this will not break Vite, given Vite now bundles DevRuntime into their own client when Vite is built and vitejs/vite#23587 will only be released in Vite minor.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://feat-dev-runtime-single-file-rolldown-rs.voidzero-docs.workers.dev (commit 57dfa85)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://7f30f9bf-rolldown-rs.voidzero-docs.workers.dev 57dfa85 2026-09-28T09:41:57.425Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://d82091ef-rolldown-rs.voidzero-docs.workers.dev 9a70e21 2026-09-28T09:24:05.802Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://b549b68e-rolldown-rs.voidzero-docs.workers.dev 18f04d1 2026-09-28T05:07:51.303Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://32a25861-rolldown-rs.voidzero-docs.workers.dev 4364401 2026-09-25T11:50:09.879Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://ade22c81-rolldown-rs.voidzero-docs.workers.dev e305a38 2026-09-25T10:49:34.585Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://71b6c024-rolldown-rs.voidzero-docs.workers.dev 1de053e 2026-09-25T10:46:18.295Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://25244a6b-rolldown-rs.voidzero-docs.workers.dev de0de1d 2026-09-25T10:35:15.716Z Visit the dashboard ↗

h-a-n-a commented Sep 25, 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 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit 57dfa85
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6aba35e3075f3e0008828d45
😎 Deploy Preview https://deploy-preview-10998--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Copy link
Copy Markdown
Member Author

Merge activity

  • Sep 25, 11:36 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 25, 11:36 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 25, 11:51 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 28, 9:22 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 28, 9:39 AM UTC: h-a-n-a added this pull request to the Graphite merge queue.
  • Sep 28, 9:43 AM UTC: Merged by the Graphite merge queue.

@h-a-n-a
h-a-n-a requested a review from sapphi-red September 25, 2026 11:36

@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: e305a382b5

ℹ️ 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".

@h-a-n-a
h-a-n-a force-pushed the feat/dev-runtime-single-file branch from e305a38 to 4364401 Compare September 25, 2026 11:47
@h-a-n-a
h-a-n-a marked this pull request as draft September 25, 2026 11:50
@h-a-n-a
h-a-n-a force-pushed the feat/dev-runtime-single-file branch from 4364401 to 18f04d1 Compare September 28, 2026 05:05
@h-a-n-a
h-a-n-a marked this pull request as ready for review September 28, 2026 08:12
<!--
- 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!
-->

Resolves vitejs/vite#23568 (comment)

Merging this will not break Vite, given Vite now bundles `DevRuntime` into their own client when Vite is built and vitejs/vite#23587 will only be released in Vite minor.
@graphite-app
graphite-app Bot force-pushed the feat/dev-runtime-single-file branch from 9a70e21 to 57dfa85 Compare September 28, 2026 09:39
@graphite-app
graphite-app Bot merged commit 57dfa85 into main Sep 28, 2026
36 checks passed
@graphite-app
graphite-app Bot deleted the feat/dev-runtime-single-file branch September 28, 2026 09:43
@h-a-n-a

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

Copy link
Copy Markdown
Member Author

Main CI fails until vitejs/vite#23606 gets merged.

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
@rolldown-guard rolldown-guard Bot mentioned this pull request Sep 30, 2026
shulaoda added a commit that referenced this pull request Sep 30, 2026
## [1.2.12] - 2026-09-30

### 🚀 Features

- inline common chunks containing import() and deduplicate shared code in lazy chunks (#11034) by @hyfdev
- experimental `inlineCommonChunks` support (#10899) by @hyfdev
- dev: ship imported bindings for HMR partial accept (#10856) by @h-a-n-a

### 🐛 Bug Fixes

- chunking: re-derive chunk exec orders after the runtime leaves its host chunk (#11005) by @hyfdev
- code-splitting: gate member-read init paths on the reading statement (#11039) by @hyfdev
- code-splitting: retain initialization paths through re-exported namespaces (#11037) by @hyfdev
- dev: reject non-ESM output formats in dev mode (#11038) by @h-a-n-a
- dev: align `import.meta.hot.accept` deps with Vite (#10997) by @h-a-n-a
- dev: clear the resolver cache when a file is created or deleted (#10986) by @waltuov
- error: name the resolved specifier in unresolved import diagnostics (#11014) by @linyiru
- make entries-aware chunk merging deterministic (#11002) by @hyfdev
- watch: avoid restarting macOS watcher for unchanged paths (#10992) by @sep2

### 🚜 Refactor

- dev: ship the dev runtime entry as one file (#10998) by @h-a-n-a
- binding: remove `__internalForcePanic` (#10989) by @IWANABETHATGUY

### 📚 Documentation

- fix cloudflare preview builds (#10996) by @sapphi-red
- fix build config loader warning (#10994) by @sapphi-red
- deps: use Vite 8 (#10993) by @sapphi-red

### ⚡ Performance

- dev: only ship rows with dynamic edges in registerGraph (#11019) by @h-a-n-a

### 🧪 Testing

- code-splitting: cover more re-exported namespace shapes (#11042) by @hyfdev
- webcontainer: cover the WebContainer download fallback in plain Node (#10966) by @shulaoda
- dev: pin the runtime entry file layout that Vite serves (#10983) by @h-a-n-a

### ⚙️ Miscellaneous Tasks

- pin VOID_API_URL for the docs deploy (#11041) by @shulaoda
- opt into the WebContainer smoke test for napi bumps and loader changes (#10967) by @shulaoda
- deps: upgrade oxc to 0.152.0 (#11018) by @camc314
- deps: update rust crates (#11012) by @renovate[bot]
- deps: update npm packages (#11011) by @renovate[bot]
- deps: update crate-ci/typos action to v1.50.3 (#11023) by @renovate[bot]
- deps: update test262 submodule for tests (#11022) by @rolldown-guard[bot]
- deps: update rollup submodule for tests to v4.63.5 (#11021) by @rolldown-guard[bot]
- deps: update dependency vite-plus to v1 (#11017) by @renovate[bot]
- deps: update github actions (#11010) by @renovate[bot]
- remove `CLAUDE.md` (#10925) by @iiio2
- verify release debug info by matching file IDs (#10988) by @IWANABETHATGUY
- deps: update rollup submodule for tests to v4.63.4 (#10940) by @rolldown-guard[bot]

### ❤️ New Contributors

* @waltuov made their first contribution in [#10986](#10986)
* @linyiru made their first contribution in [#11014](#11014)
* @sep2 made their first contribution in [#10992](#10992)

Co-authored-by: shulaoda <[email protected]>

This branch had an error being deployed

1 failed deployment
void — 57dfa85f Deployed Sep 28, 2026 by graphite-app[bot] via Deploy to Void #5016
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