Conversation
h-a-n-a
added a commit
to rolldown/rolldown
that referenced
this pull request
Sep 25, 2026
`import.meta.hot.acceptExports(names, cb)` lets a module accept its own
change only for the listed exports. An importer that reads only those
exports is left alone. An importer that reads any other export still
gets the update.
Rolldown ships the export names each importer reads, so the browser can
make the same decision. For each static import edge, the export names
the importer reads. `"*"` means the whole namespace (`import * as ns`,
`export * from`, `require()`, non-JS records). An empty list means a
side-effect-only import. Names are listed only for edges into a module
that calls `acceptExports`, and `bindings` holds only the rows that have
such an edge. A missing row or entry means `"*"`.
```js
// header.js: import { count } from './counter.js'
// title.js: import { label } from './counter.js'
// main.js: import './header.js'; import './title.js'
__rolldown_runtime__.registerGraph({
ids: ["main.js", "header.js", "title.js", "counter.js"],
localCount: 4,
edges: [[1, 2], [3], [3], []],
bindings: { 1: [["count"]], 2: [["label"]] },
dynamicEdges: [[], [], [], []],
})
```
Vite: vitejs/vite#23463
closes #10061
h-a-n-a
force-pushed
the
feat/bundled-dev-accept-exports
branch
from
October 2, 2026 19:05
6d9445a to
39bfe2b
Compare
This branch has not been deployed
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.
Added support for
import.meta.hot.acceptExportsin bundled-dev mode.Blocked by rolldown/rolldown#10856, and upgrading to rolldown@1.2.12