Rolldown 1.3.4
Rolldown 1.3.4, published on November 26, 2026, spends most of its budget on something users rarely see until it hurts: memory after the build finishes. The bundler now hands idle memory back to the operating system, and the project says the change matters most for long-running tools that bundle through the Rolldown API, Vite dev among them.
What Changed
The reclaim runs in the background while Rolldown is idle (#11655). Once builds stop, the memory Rolldown no longer needs is returned to the OS, so peak memory is lower and idle memory drops sharply for processes that keep the bundler loaded between rebuilds. The release also moves mimalloc from 3.6.1 to 3.7.0.
There is a trade-off, and the release notes state it plainly: the cleanup uses some CPU time, and the next build takes the returned memory back from the OS. If builds get slower or CPU use rises after upgrading, setting ROLLDOWN_MEMORY_RECLAIM_DELAY=off before starting the process disables it, and the team asks for an issue in that case.
New for Plugin Authors
- Builtin injectPlugin. A new builtin plugin with
includeandexcludeoptions (#11290), which removes the need to hand-write a resolve hook for the common case of injecting a module into selected files. - declaredModuleSize. Plugins can declare a module's real size (#11844), which matters for transforms that expand or shrink a module well beyond what the source suggests.
- maxDuplicatedSize. The inline-common-chunks option can keep widely copied chunks as separate files instead of inlining them (#11845).
- Sourcemap locations. The magic-string integration supports explicit sourcemap locations (#11884).
- Watch rounds. The CLI reports when a watch round finishes (#11820), and passing the
watchoption tobuild()now produces a warning (#11781). - Bindings.
dropInner()was added to 12 binding classes alongside an extracted release helper (#11855).
Import Attributes Get Stricter
Two changes touch import attributes. Vite's build import analysis no longer strips attributes when experimental.importAttributes is enabled (#11802), and Rolldown now warns when a non-ESM output drops the import attributes of an external (#11797). Both are warnings and behaviour corrections rather than new syntax.
The Fix List
The patch set is dominated by output correctness. Hoisted function names are restored before a chunk's modules run (#11962). Relative external imports no longer lose a leading _/ (#11968), empty output filenames no longer panic in the external and sourcemap paths (#11963, #11966), and an empty sourcemapFileNames is treated as unset (#11967). Code splitting stops counting JSON modules as zero bytes (#11939) and avoids an extra shared chunk when an entry only re-exports another entry (#11847). Treeshaking removes unused objects that contain identity function calls (#11852). Incremental rebuilds fetch changed modules from their creating resolution (#11837), and this.load of an unchanged module can finish during a rebuild (#11911). On the CommonJS side, named exports survive export * of a dynamically imported module (#11835) and re-exporting from an external export * in another chunk no longer throws a ReferenceError (#11848).
Install with npm install -D [email protected]. If you run a bundler in watch mode all day, this is the release to take: the memory behaviour is the headline, and the escape hatch is one environment variable away if your machine disagrees.