Skip to content

feat(import-attributes): model import attributes and keep them on the import record - #11301

Merged
shulaoda merged 1 commit into
mainfrom
feat/import-attributes-1-model
Nov 3, 2026
Merged

shulaoda merged 1 commit into
mainfrom
feat/import-attributes-1-model

Conversation

@shulaoda

@shulaoda shulaoda commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Part 1 of 11 of the import attributes stack. RFC: #11217. Full proof of concept: #11254.

Adds the data model for import attributes, aligned with Rollup 5. Nothing reads the new option yet, so builds behave as before, except for the legacy assert keyword below.

  • ImportAttributes: the attributes of one import, kept in the order JSON.stringify emits them, so equal attributes always compare and hash the same.
  • ModuleId::with_attributes: builds the Rollup 5 id rawId?attributes=<encoded JSON> and keeps raw_id() for path operations.
  • ResolvedId.attributes and ImportRecord.attributes: carry the attributes through resolution and keep what the scanner read from a with clause.
  • experimental.importAttributes: accepted by the Rust options, used by the next PRs.
  • Tests: configVariants accept importAttributes, so a fixture can run in both modes.

Until now Rolldown supported import attributes only partially: the ImportAttribute side table (#5794, #9796, #11100) kept the with clause of an external import as written and picked one clause per chunk, while attributes took no part in module identity. That side table is gone. In this PR the with clause of an external is rendered from the import record's attributes instead, so the output does not change, except that keys are sorted and duplicates are removed. #11303 then renders it from the module's own attributes.

The legacy assert keyword is deprecated. It is treated as with, so its attributes are kept and an external renders a with clause. The build warns with the new DEPRECATED_IMPORT_ASSERTION code (checks.deprecatedImportAssertion). Use with instead. Earlier versions kept the assert clause as written, which Node 22 rejects.

@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://feat-import-attributes-1-model-rolldown-rs.voidzero-docs.workers.dev (commit ad69ce5)

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://4c3b3fc3-rolldown-rs.voidzero-docs.workers.dev ad69ce5 2026-11-03T13:21:29.519Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://d85f28c1-rolldown-rs.voidzero-docs.workers.dev 93ab817 2026-10-29T08:08:04.317Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://2c0282e7-rolldown-rs.voidzero-docs.workers.dev 3fa26a5 2026-10-29T06:57:13.963Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://0e038c15-rolldown-rs.voidzero-docs.workers.dev c9bdd3e 2026-10-29T06:05:30.622Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://91cbe27a-rolldown-rs.voidzero-docs.workers.dev af5efae 2026-10-28T04:32:15.766Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://46990e5c-rolldown-rs.voidzero-docs.workers.dev 4b0435e 2026-10-28T03:55:43.702Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://9e1d9a54-rolldown-rs.voidzero-docs.workers.dev 504f277 2026-10-26T08:51:05.678Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://8d295208-rolldown-rs.voidzero-docs.workers.dev 1bbbc9a 2026-10-26T08:42:24.657Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://f24a8399-rolldown-rs.voidzero-docs.workers.dev 16da573 2026-10-26T02:24:22.484Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://920809e1-rolldown-rs.voidzero-docs.workers.dev cd7b193 2026-10-26T01:52:51.705Z Visit the dashboard ↗

View all previews: View all previews ↗

@shulaoda
shulaoda added this pull request to stack #11311 October 25, 2026 22:52
@netlify

netlify Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit ad69ce5
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6ae9df51ed76977c8fc5446d
😎 Deploy Preview https://deploy-preview-11301--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.

@shulaoda
shulaoda force-pushed the feat/import-attributes-1-model branch from cea3caf to 2b95600 Compare October 25, 2026 23:59
@shulaoda
shulaoda removed this pull request from stack #11311 October 26, 2026 00:00
@shulaoda
shulaoda added this pull request to stack #11313 October 26, 2026 00:01
@shulaoda shulaoda changed the title feat: add ImportAttributes and an attribute-aware ModuleId feat(import-attributes): add ImportAttributes and an attribute-aware ModuleId Oct 26, 2026
@shulaoda
shulaoda removed this pull request from stack #11313 October 26, 2026 01:26
@shulaoda
shulaoda force-pushed the feat/import-attributes-1-model branch from 2b95600 to f1c8d8a Compare October 26, 2026 01:26
@shulaoda
shulaoda added this pull request to stack #11315 October 26, 2026 01:27
@shulaoda shulaoda changed the title feat(import-attributes): add ImportAttributes and an attribute-aware ModuleId feat(import-attributes)!: model import attributes and drop the partial external with clause support Oct 26, 2026
@shulaoda shulaoda changed the title feat(import-attributes)!: model import attributes and drop the partial external with clause support feat(import-attributes): model import attributes and keep them on the import record Oct 26, 2026
@shulaoda
shulaoda force-pushed the feat/import-attributes-1-model branch 2 times, most recently from cd7b193 to 16da573 Compare October 26, 2026 02:19
@shulaoda shulaoda changed the title feat(import-attributes): model import attributes and keep them on the import record feat(import-attributes)!: model import attributes and keep them on the import record Oct 26, 2026
@shulaoda
shulaoda force-pushed the feat/import-attributes-1-model branch from 16da573 to 1bbbc9a Compare October 26, 2026 08:38
@shulaoda
shulaoda force-pushed the feat/import-attributes-1-model branch from 1bbbc9a to 504f277 Compare October 26, 2026 08:45
@shulaoda
shulaoda marked this pull request as ready for review October 26, 2026 08:50
@codspeed

codspeed Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 4 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing feat/import-attributes-1-model (ad69ce5) with main (f966f26)

Open in CodSpeed

Footnotes

  1. 10 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@sapphi-red

Copy link
Copy Markdown
Member

Breaking change. The legacy assert keyword is no longer supported. Its attributes are dropped and the build warns with the new INVALID_IMPORT_ATTRIBUTE code (checks.invalidImportAttribute). Use with instead.

Why not error when encountered or convert it to with?

@sapphi-red

Copy link
Copy Markdown
Member

Does the architecture take module import phase into account?

@shulaoda

Copy link
Copy Markdown
Member Author

Breaking change. The legacy assert keyword is no longer supported. Its attributes are dropped and the build warns with the new INVALID_IMPORT_ATTRIBUTE code (checks.invalidImportAttribute). Use with instead.

Why not error when encountered or convert it to with?

Good point, I will convert it to with and warns

@shulaoda

Copy link
Copy Markdown
Member Author

Does the architecture take module import phase into account?

Do you mean import defer and import source? First, I don't think it should affect import defer. Second, for import source, as we discussed before, its main use case is WebAssembly. The way we should support it is to treat the import source target as external and just output it as is (in fact, the Rolldown team discussed this at the very beginning), rather than downleveling it like webpack does, which would make it unable to run in Cloudflare Workers. Rollup 5 also does it this way: A module imported with import source must be external, otherwise Rollup throws an error. @IWANABETHATGUY cc

@shulaoda
shulaoda force-pushed the feat/import-attributes-1-model branch from 504f277 to 4b0435e Compare October 28, 2026 03:50
@shulaoda
shulaoda force-pushed the feat/import-attributes-1-model branch from 4b0435e to af5efae Compare October 28, 2026 04:18
@shulaoda shulaoda changed the title feat(import-attributes)!: model import attributes and keep them on the import record feat(import-attributes): model import attributes and keep them on the import record Oct 28, 2026
@sapphi-red

Copy link
Copy Markdown
Member

Does the architecture take module import phase into account?

Do you mean import defer and import source? First, I don't think it should affect import defer. Second, for import source, as we discussed before, its main use case is WebAssembly. The way we should support it is to treat the import source target as external and just output it as is (in fact, the Rolldown team discussed this at the very beginning), rather than downleveling it like webpack does, which would make it unable to run in Cloudflare Workers. Rollup 5 also does it this way: A module imported with import source must be external, otherwise Rollup throws an error. @IWANABETHATGUY cc

Yes, I was mainly thinking of import source. The wasm one is now Stage 3 but the JS one is Stage 2.7. It allows you to create Workers from it. For the wasm case, Vite would have to transpile it down so it works in browsers.
Rollup externalizes at the moment simply because that was the first step, not because they decided not to add support (context: rollup/rollup#6011).

@shulaoda
shulaoda force-pushed the feat/import-attributes-1-model branch 2 times, most recently from c9bdd3e to 3fa26a5 Compare October 29, 2026 06:53
@shulaoda

Copy link
Copy Markdown
Member Author

Does the architecture take module import phase into account?

Do you mean import defer and import source? First, I don't think it should affect import defer. Second, for import source, as we discussed before, its main use case is WebAssembly. The way we should support it is to treat the import source target as external and just output it as is (in fact, the Rolldown team discussed this at the very beginning), rather than downleveling it like webpack does, which would make it unable to run in Cloudflare Workers. Rollup 5 also does it this way: A module imported with import source must be external, otherwise Rollup throws an error. @IWANABETHATGUY cc

Yes, I was mainly thinking of import source. The wasm one is now Stage 3 but the JS one is Stage 2.7. It allows you to create Workers from it. For the wasm case, Vite would have to transpile it down so it works in browsers. Rollup externalizes at the moment simply because that was the first step, not because they decided not to add support (context: rollup/rollup#6011).

I think aligning with Rollup 5 and supporting import source for externals is enough for now? It already covers most use cases and works in Cloudflare Workers. We can look into how to transpile it later, and make sure it still works in cases like Cloudflare Workers and browsers. That will probably need discussion with Rollup and the ecosystem. If transpiling is really needed in Vite side, maybe a plugin could cover it for now?

@shulaoda
shulaoda requested a review from sapphi-red October 29, 2026 07:49
@shulaoda
shulaoda force-pushed the feat/import-attributes-1-model branch from 3fa26a5 to 93ab817 Compare October 29, 2026 08:04
@sapphi-red

Copy link
Copy Markdown
Member

Well the point is to take it into account so we don't have to introduce breaking changes. I think we should consider how we should support it regardless of whether we'll implement it now.

@shulaoda

Copy link
Copy Markdown
Member Author

Well the point is to take it into account so we don't have to introduce breaking changes. I think we should consider how we should support it regardless of whether we'll implement it now.

Okay, I didn't think deeply about import phase when designing import attributes. I simply thought a source phase import should only be supported as an external module. I don’t have a good idea for it right now. @IWANABETHATGUY cc

@shulaoda

shulaoda commented Oct 29, 2026 •

Copy link
Copy Markdown
Member Author

I think the key question is whether we treat import source m from './a.wasm' and import * as i from './a.wasm' as two modules, right? And whether the phase needs to be part of the module identity.

Even if we support full import source in the future and decide to make it part of the module identity, wouldn't it just be one more field, like import attributes? I'm not sure about this.

Maybe hyfdev's earlier point makes some sense here.

@shulaoda

shulaoda commented Oct 29, 2026 •

Copy link
Copy Markdown
Member Author

Well the point is to take it into account so we don't have to introduce breaking changes. I think we should consider how we should support it regardless of whether we'll implement it now.

@sapphi-red So when you say breaking change, do you mean module identity, or the plugin hooks/API? Should we wait for the specific import source RFC before deciding whether to ship import attributes? I think we're treating import attributes as an experimental feature, so we can actually still make adjustments later.

@shulaoda
shulaoda removed this pull request from stack #11315 October 29, 2026 12:33
@shulaoda
shulaoda added this pull request to stack #11382 October 29, 2026 12:34
… import record

Import attributes become a first-class model, aligned with Rollup 5.
`ImportAttributes` keeps the attributes of an import in the order
`JSON.stringify` emits them, so equal attributes compare, hash and serialize
the same. `ModuleId::with_attributes` composes the Rollup 5 id
`rawId?attributes=<encodeURIComponent(JSON.stringify(sorted))>` and keeps
`raw_id()` reachable, `ResolvedId.attributes` carries the attributes a
resolution ends with, and `ImportRecord.attributes` holds what the scanner read
from a static clause. The Rust options accept `experimental.importAttributes`,
which nothing composes ids with yet.

The `ImportAttribute` side table and `import_attribute_map` go away: the `with`
clause of an external is rendered from the attributes of its import record, so
the output for `with` clauses does not change. The rendered clause is
normalized: keys in JS order, duplicates collapsed, identifier keys unquoted.

The legacy `assert` keyword is deprecated. Its attributes are read like `with`,
the output renders a `with` clause, and the build warns with the new
`DEPRECATED_IMPORT_ASSERTION` event (`checks.deprecatedImportAssertion`).
Rolldown kept `assert` as written before, which Node 22 rejects.

RFC: #11217
@shulaoda
shulaoda force-pushed the feat/import-attributes-1-model branch from 93ab817 to ad69ce5 Compare November 3, 2026 13:19
@shulaoda
shulaoda merged commit e7a7ffd into main Nov 3, 2026
37 checks passed
@shulaoda
shulaoda deleted the feat/import-attributes-1-model branch November 3, 2026 14:56
@rolldown-guard rolldown-guard Bot mentioned this pull request Nov 5, 2026
shulaoda added a commit that referenced this pull request Nov 5, 2026
> [!IMPORTANT]
> **This is a minor release.** It adds experimental support for import attributes, and some changes alter default behavior compared to `1.2.16`. Please read **Breaking changes** before upgrading.

> [!WARNING]
> **Vite users:** Please do not force `[email protected]` into Vite with `overrides` or `resolutions` yet. Vite 8.3.6 and earlier need changes to work with it. Vite pins its `rolldown` version, so a normal install is not affected. Please wait for a Vite release that supports Rolldown 1.3.

## 🌟 Import attributes support (experimental)

Import attributes are the `with { ... }` part of an import. Node.js and browsers require them for JSON and CSS module scripts, so they are common in code written for these runtimes.

```js
import config from './config.json' with { type: 'json' };
import shader from './shader.glsl' with { type: 'text' };
import wasm from './module.wasm' with { type: 'bytes' };
```

With `experimental.importAttributes`:

- The same file imported with different attributes becomes different modules.
- `type: 'json'`, `'text'` and `'bytes'` work without a plugin.
- Plugins can read the attributes in `resolveId`, `load` and `transform`, and change them in `resolveId`.

```js
// rolldown.config.js
export default {
  experimental: {
    importAttributes: true,
  },
};
```

The design follows Rollup 5. The option is off by default, because it changes the id of modules imported with attributes, and plugins that use the id as a file path can break.

Rolldown's dev mode and Vite do not support it yet. See the [Import Attributes guide](https://rolldown.rs/in-depth/import-attributes) for details and plugin migration.

## 🌟 Agent-friendly build report (experimental)

With `devtools: { mode: 'report' }`, Rolldown writes small Markdown and JSON files about each build to `node_modules/.rolldown/report/`. A coding agent can read the numbers directly, and does not need scripts to parse a large event log. People and CI can use them too.

```js
// rolldown.config.js
export default {
  devtools: { mode: 'report' },
};
```

The report shows:

- **Time:** scan and generate times, plugin timings for each hook, hooks that did no work, and the slowest modules in `transform` hooks.
- **Chunks:** the largest chunks, the reason each chunk exists, and modules in more than one chunk.
- **Modules:** import kinds, the most-imported modules, and modules that several entries share.
- **Packages:** the largest packages, direct and transitive dependencies, and packages with more than one version.
- **Graph:** the initial load of each entry, the chunk import graph, and the retained size of each module.
- **Changes:** the difference from the previous build, or from a baseline that you pin.
- **Raw data:** stable metric ids in `metrics.json`, and complete graphs in `module-graph.json` and `chunk-graph.json`.

See the [Build Report guide](https://rolldown.rs/in-depth/build-report) for how to read each file and how to use the numbers in CI.

## 🌟 `@rolldown/perf-kit` (experimental)

`@rolldown/perf-kit` 0.1.0 is a new package that consumes the data from `devtools: { mode: 'report' }` and adds its own measurements. An agent or a person can use the processed data to improve LCP, FCP and startup time. A fixed baseline and a check of the rendered output show which changes to keep.

```sh
npx @rolldown/perf-kit help
```

It measures 3 targets:

- A page: LCP and FCP in a throttled browser (`scan`). The build needs sourcemaps.
- A Node.js or Deno server: the time until the server is ready (`node-scan`).
- A Cloudflare Worker: the time in global scope (`worker-scan`).

See the [Perf Kit guide](https://rolldown.rs/in-depth/perf-kit) for the agent prompts and more details.

We compared an agent alone with an agent using perf-kit on 3 open-source Cloudflare Workers. The prompts, results and steps to reproduce are in [perf-kit-worker-startup](https://github.com/IWANABETHATGUY-reproduction/perf-kit-worker-startup).

<p>
  <img width="45%" alt="Worker startup per app" src="https://github.com/user-attachments/assets/e9549835-86f4-4be0-be03-b735b6688987" />
  <img width="53%" alt="Cost of one agent run" src="https://github.com/user-attachments/assets/39fa9d18-00a9-47e5-9e18-737503797fdd" />
</p>

## ⚠️ Breaking changes

### `preserveModules` file names now follow Rollup (#11410, #11413)

`[name]` now keeps non-JS extensions, so `data.json` becomes `data.json.js` instead of `data.js`, and `Comp.vue` becomes `Comp.vue.js` instead of `Comp.js`. Libraries that point `exports` at the old file names need to update them.

### CLI: `--input` cannot be used together with positional entries (#11445)

`rolldown 1.js --input 2.js` now fails. Use `rolldown 1.js 2.js` or `rolldown --input 1.js --input 2.js`.

## 🩹 Notable fixes

### External imports keep their attributes correctly (#11302, #11303)

This applies to every build, with or without `experimental.importAttributes`. Before, two imports of one external with different attributes became one module, and one import was lost. The legacy `assert` keyword was also copied to the output, which Node.js 22+ cannot load.

```js
// input (`ext` is external)
import 'ext';
import 'ext' with { type: 'json' };
import data from 'ext2' assert { type: 'json' };

// 1.2.16 output
import 'ext' with { type: 'json' };
import data from 'ext2' assert { type: 'json' };

// 1.3.0 output, with a DEPRECATED_IMPORT_ASSERTION warning
import 'ext';
import 'ext' with { type: 'json' };
import data from 'ext2' with { type: 'json' };
```

Plugins now see such an external with the attributes in its id, for example `ext?attributes=%7B%22type%22%3A%22json%22%7D` in `this.getModuleIds()`.

---

## [1.3.0] - 2026-11-05

### 💥 BREAKING CHANGES

- cli: reject `--input` together with positional entries like Rollup (#11445) by @IWANABETHATGUY

### 🚀 Features

- perf-kit: measure the deployed site and replay it for local builds (#11215) by @IWANABETHATGUY
- perf-kit: diagnose chunk loading before FCP and LCP (#11214) by @IWANABETHATGUY
- import-attributes: keep import attributes away from plugins without the option (#11476) by @shulaoda
- import-attributes: let a `type` import attribute beat `moduleTypes` in the asset and copy plugins (#11309) by @shulaoda
- import-attributes: pass import attributes to the `transform` hook (#11308) by @shulaoda
- import-attributes: pass import attributes to the `load` hook (#11307) by @shulaoda
- import-attributes: accept import attributes in `this.resolve` and `this.load` (#11306) by @shulaoda
- import-attributes: pass import attributes to the `resolveId` and `resolveDynamicImport` hooks (#11305) by @shulaoda
- import-attributes: expose `experimental.importAttributes` and the module id helpers to JS (#11304) by @shulaoda
- import-attributes: render the import attributes of externals from their module identity (#11303) by @shulaoda
- import-attributes: make import attributes part of module identity (#11302) by @shulaoda
- import-attributes: model import attributes and keep them on the import record (#11301) by @shulaoda
- expose notify APIs (#11380) by @sapphi-red
- devtools: list the hooks that did no work in the report (#11388) by @IWANABETHATGUY

### 🐛 Bug Fixes

- respect `NO_COLOR` in error and warning diagnostics (#11499) by @shulaoda
- rolldown_plugin_vite_import_glob: match negated `**` globs from the walk root (#11495) by @shulaoda
- lazy-barrel: report used lazy barrel uncertain bindings with a dedicated error (#11493) by @shulaoda
- avoid following output directory symlinks with `output.cleanDir` (#11494) by @sapphi-red
- rolldown_plugin_vite_dynamic_import_vars: handle CRLF line breaks in the static import prefix (#11492) by @shulaoda
- rolldown_plugin_vite_build_import_analysis: ensure unique preload markers (#11157) by @sapphi-red
- watch: match Rollup for BUNDLE_END output and multi-config watch options (#10348) by @Brooooooklyn
- rolldown_plugin_vite_dynamic_import_vars: escape import specifier (#11483) by @sapphi-red
- error: add id, plugin, and frame to native errors (#9979) by @raminjafary
- treeshaking: run a CommonJS module that is reached only through `export *` (#11423) by @magurotuna
- escape URL in sourceMappingURL (#11482) by @sapphi-red
- rolldown_plugin_vite_import_glob: escape import names (#11486) by @sapphi-red
- rolldown_plugin_esm_external_require: escape import specifiers (#11487) by @sapphi-red
- tree-shaking: drop unused imports of side-effect-free externals in ESM output (#11470) by @hyfdev
- lazy-barrel: treat bindings behind skipped lazy barrel records as unknown (#11448) by @shulaoda
- rolldown_plugin_vite_react_refresh_wrapper: escape import specifier (#11485) by @sapphi-red
- devtools: count only hook calls that ran in the report (#11468) by @IWANABETHATGUY
- rust: harden bundle close lifecycle (#11371) by @Brooooooklyn
- strict-execution-order: name shared CJS re-export bindings independently of load order (#11206) by @natew
- dev/lazy: don't proxy plugin-resolved externals (#11295) by @cestercian
- rolldown_plugin_vite_transform: report oxc transformer warnings as warnings (#11459) by @Dunqing
- dev: report a lazy-compile failure as diagnostics, not a formatted string (#10490) by @tbvjaos510
- binding: stop mishandling per-call data at the callable builtin plugin boundary (#10482) by @hyfdev
- dev/lazy: resolve `import()` of a CommonJS module to its ESM view (#11020) by @h-a-n-a
- dev/lazy: load a lazy route in one request and only as factories (#11000) by @h-a-n-a
- error when one module id resolves as both external and non-external (#11421) by @IWANABETHATGUY
- sourcemap: keep only traced sources and names in module sourcemaps (#11270) by @IWANABETHATGUY
- give module namespace objects a `null` prototype and make them non-extensible (#11428) by @IWANABETHATGUY
- watch: reset JS load promises before rebuilding (#11316) by @owjs3901
- new-url: keep the query and fragment when rewriting `new URL()` (#11420) by @theRizwan
- dev: don't panic when buildStart emits a chunk during a partial rebuild (#11322) by @RagedPanda
- treeshaking: drop an unused top-level `import()` of a side-effect-free module that exports `then` (#11409) by @hyfdev
- derive reference ids from stable seeds for deterministic builds (#10797) by @MarshallOfSound
- rolldown_plugin_vite_import_glob: resolve aliased globs without blocking a runtime worker (#11385) by @shulaoda
- preserve-modules: read the extension after `sanitizeFileName` like Rollup (#11413) by @IWANABETHATGUY
- rolldown_plugin_vite_dynamic_import_vars: await the resolver instead of blocking a runtime worker (#11386) by @shulaoda
- cli: preserve entry arguments after double dash (#11438) by @shuvroroy
- treeshaking: invalidate constants when exports is reassigned (#11430) by @shuvroroy
- plugin: queue onLog callbacks eagerly (#11374) by @Brooooooklyn
- avoid inferring constants from compound CommonJS exports (#11429) by @shuvroroy
- json: avoid shadowing JSON.parse with named exports (#11432) by @shuvroroy
- watcher: prioritize queued input during debounce (#11369) by @Brooooooklyn
- replace: preserve declarations after Unicode text (#11435) by @shuvroroy
- treeshaking: don't drop side effects that follow an `exports.x` write in the same CommonJS statement (#11408) by @hyfdev
- don't inline a CommonJS export that is assigned conditionally or also through `module.exports` (#11404) by @hyfdev
- json: preserve __proto__ as an own data property (#11367) by @shuvroroy
- tree-shaking: preserve dynamic import exports read through callback arguments (#11366) by @shuvroroy
- respect `externalLiveBindings` for star re-exports from externals in cjs (#11328) by @logaretm
- preserve-modules: keep non-JS extensions in [name] (#11410) by @cestercian
- treeshaking: don't tree-shake a statement that holds a CommonJS top-level `return` (#11402) by @hyfdev
- don't export JSON keys that the finalizer inlines away from a shared chunk (#11396) by @IWANABETHATGUY
- sourcemap: support toUrl without Buffer (#11370) by @Brooooooklyn
- handle nullish thrown values in error summary (#11373) by @Brooooooklyn
- don't inline a `var` that module-level code reads before its declaration (#11379) by @hyfdev
- treat a repeated `var` declaration as a reassignment (#11378) by @hyfdev

### 🚜 Refactor

- remove dead concatenated wrapped module code (#11453) by @Dunqing
- align watch options for the util function to dev mode (#11474) by @sapphi-red
- simplify splitting oxc diagnostics by severity (#11458) by @Dunqing
- rolldown: run deferred drops on a dedicated thread instead of rayon (#11372) by @Brooooooklyn
- align watch options for dev mode and build (#11446) by @sapphi-red

### 📚 Documentation

- add build report and perf-kit in-depth pages (#11480) by @IWANABETHATGUY
- rolldown_plugin_vite_import_glob: describe how import.meta.glob follows file changes (#10573) by @shulaoda
- import-attributes: add an in-depth guide for import attributes (#11310) by @shulaoda
- import-attributes: correct comments and docs about import attributes (#11477) by @shulaoda
- rolldown: explain why drops are deferred and why `drain` waits for every bundler's drops (#11455) by @hyfdev

### ⚡ Performance

- rolldown_plugin_vite_dynamic_import_vars: avoid string allocation for `first_quasi` (#11484) by @sapphi-red
- node: read each rendered chunk's binding fields once (#11364) by @mattlewis92

### 🧪 Testing

- import-attributes: run the esbuild import attributes tests with the option on (#11472) by @shulaoda
- import-attributes: port the Rollup 5 import attributes tests (#11381) by @shulaoda
- rolldown_plugin_vite_import_glob: cover the glob matcher (#10572) by @shulaoda
- rolldown_plugin_vite_import_glob: cover import.meta.glob file creation and deletion (#10551) by @shulaoda

### ⚙️ Miscellaneous Tasks

- ai: harden rolldown REPL decode skill (#11491) by @sapphi-red
- deps: update rust crate testing_macros to v2 (#11439) by @renovate[bot]
- deps: update dependency @napi-rs/cli to v3.10.12 (#11463) by @renovate[bot]
- deps: update dependency vite-plus to v1.5.0 (#11475) by @renovate[bot]
- deps: update dependency glob to v14 [security] (#11462) by @renovate[bot]
- deps: upgrade oxc to 0.157.0 (#11460) by @camc314
- deps: update dependency @napi-rs/cli to v3.10.11 (#11461) by @renovate[bot]
- deps: update dependency @napi-rs/cli to v3.10.10 (#11454) by @renovate[bot]
- deps: update rollup submodule for tests to v4.67.4 (#11451) by @rolldown-guard[bot]
- deps: update test262 submodule for tests (#11452) by @rolldown-guard[bot]
- deps: update dependency rolldown-plugin-dts to ^0.29.0 (#11427) by @renovate[bot]
- deps: update rust crates (#11426) by @renovate[bot]
- deps: update npm packages (#11425) by @renovate[bot]
- deps: update rust crate napi to v3.16.1 (#11401) by @renovate[bot]
- release `@rolldown/perf-kit` independently (#11394) by @shulaoda
- deps: update napi to v3.16.0 (#11389) by @renovate[bot]
- drop outdated `CLAUDE.md` symlink note from `AGENTS.md` (#11384) by @iiio2

### ❤️ New Contributors

* @raminjafary made their first contribution in [#9979](#9979)
* @natew made their first contribution in [#11206](#11206)
* @cestercian made their first contribution in [#11295](#11295)
* @owjs3901 made their first contribution in [#11316](#11316)
* @theRizwan made their first contribution in [#11420](#11420)
* @RagedPanda made their first contribution in [#11322](#11322)

Co-authored-by: shulaoda <[email protected]>
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.

3 participants