rolldown
1.3.3 · 18 Nov 2026MIT181.7M / weekRepositoryHomepagenpmAtom feed
1.3.3 is the newest release of 1.x.
In short
8 new10 faster49 fixed68 internal
Release note
Features
plugin: Surface output-option callbacks in [PLUGIN_TIMINGS]
import.meta.ROLLDOWN_FILE_URL_<referenceId>_<urlId>support to pass context toresolveFileUrlhookcode-splitting: Wrap strict execution order modules on demand
Support
import.meta.ROLLDOWN_FILE_URL_*Implement
resolveFileUrlplugin hookmagic-string: Support storeName on overwrite/update
Bug Fixes
external: Keep
__toESMwhen the importing module is tree-shakencode-splitting: Route CJS barrel initialization per consumer
error: Align filename-pattern diagnostics with Rollup's wording
plugin: Validate emitted prebuilt-chunk file names
code-splitting: Point a two-argument dynamic import at the chunk that holds the module
common: Align is_path_fragment with Rollup's isPathFragment
code-splitting: Never name an internal chunk export
thencode-splitting: Avoid creating call-site-triggered entry facades
code-splitting: Collect top-level eager order reasons in every strict build
code-splitting: Let a cross-chunk dynamic importer carry the order trigger
code-splitting: Avoid the dynamic-entry facade when the same-chunk collapse carries the trigger
binding: Forward resolveId options.kind to callable builtin plugins
code-splitting: Only split an entry facade when something else can load its chunk
code-splitting: Fold the runtime chunk back after order lowering
runtime: Don't leave default undefined for cjs that fakes __esModule
import-glob: Escape generated string literals
preserve-modules: Don't assume every chunk mirrors a module
filter: Treat missing hook inputs as non-matches, not panics
code-splitting: Keep CommonJS modules wrapped under strict execution order
code-splitting: Align dynamicImports metadata with the rewritten import() specifier
treeshake: Preserve side-effect-free spread arguments in manual-pure chains
treeshake: Preserve eagerly evaluated child effects of manual pure chains
code-splitting: Initialize pure definers behind star re-export barrels under strict execution order
resolveId: Reject string
idfilters (must be a RegExp)code-splitting: Collect eager order reasons for on-demand wrapping
rolldown: Apply output.paths to CJS export-star of external modules
plugin: Validate emitted file names at emitFile time
Guarantee tokio runtime release when close rejects
code-splitting: Make strict transitive init registration deterministic and constant-time
Pair tokio runtime acquire and release on wasm to prevent premature shutdown
Don't body-demand modules from simulated facade chunk includes
tracing: Invalid RD_LOG filter and RD_LOG_OUTPUT=json no longer panic
code-splitting: Treat class definition-time global reads as order-sensitive
code-splitting: Deconflict force-included runtime helper statements
binding: Forward all missing parallel JS plugin hooks
code-splitting: re-derive chunk exec order after the runtime sweep
types: Add undefined to ExistingRawSourceMap optional properties
magic-string: Validate relocate ranges before rewiring
Add EMPTY_IMPORT_META warning for non-node CJS output
Call
resolveFileUrlin a deterministic ordermagic-string: Refuse repeated sendMagicString on a consumed instance
magic-string: Refuse to use a MagicString after sendMagicString consumed it
magic-string: Reject non-contiguous moves before rewiring the chunk list
Handle
./foo/barglob pattern the same asfoo/barmagic-string: Throw instead of panicking when append/prepend splits an edited chunk
output: Skip separator for empty hoisted functions
magic-string: Don't report a change when edits cancel out
sourcemap: Map wrapped imported callees
magic-string: Count positional inserts at index 0 on an empty source
magic-string: Return UTF-16 code units from length()
output: Skip separator for empty import prelude
Performance
Use VisitJsMut in JavaScript-only AST passes
Cache the resolved glob matcher for Id/ImporterId filters
scope_hoisting: Remove
allocfield fromScopeHoistingFinalizerReduce string allocations
hmr: Remove unnecessary string allocations
Avoid allocating static strings via custom builder methods
Pass string literals to AST builder methods
Use VisitJs in JavaScript-only AST passes
plugin: Shrink erased plugin debug vtables
Reuse normalized path buffers
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.