rollup
4.68.5 · 17 Nov 2026MIT170.6M / weekRepositoryHomepagenpmAtom feed
Upgrading rollup From 3.27.0 to 4.68.5
209 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
Security
Fixes 2 advisories affecting 3.27.0
- DOM Clobbering Gadget found in rollup bundled scripts that leads to XSShigh · GHSA-gcx4-mw62-g8wm
- Rollup 4 has Arbitrary File Write via Path Traversalhigh · GHSA-mw96-cpmx-2vgc
- 4.60.4
Resolve vulnerabilities
- 4.45.3
Update eslint-plugin-unicorn to resolve vulnerability
- 4.22.4
Fix a vulnerability in generated code that affects IIFE, UMD and CJS bundles when run in a browser context
Release by release
- Fixed
Improve handling of repeated file updates in watch mode for Linux and Windows
- Fixed
Properly handle
thisin JSX member expressions
- Fixed
- Fixed
Ensure that mutations of arguments to certain global methods are respected in analysis
- Fixed
Ensure dynamic imports resolution via plugin is handled equivalently to regular dynamic imports
- Fixed
Fix resolution info for dynamic imports resolved by plugins (@TrickyPi, @lukastaegert)
- Fixed
- Fixed
Fix generated code in non-ESM formats for assignments and exported declarations in loops and single-statement bodies
- Fixed
Ensure rollup does not make assumptions about the contents of an array where the length has been reassigned
- Fixed
Fix system format updates for destructuring and for-loop assignments (@rome-xi, @lukastaegert)
- Fixed
- Fixed
Fail if generated file names would write outside the target directory using Windows drive-relative paths
- Fixed
- Fixed
Improve namespace object generation in cyclic imports
- Fixed
Warn about deleting or reassigning namespace members but make those operations catchable runtime errors
- Fixed
Do not generate invalid code for non-esm output when exporting destructing declarations with defaults
- Fixed
Fix invalid output for exported destructuring declarations with defaults (@trleo, @lukastaegert)
- Fixed
- New
Use the directory name instead of "index" for dynamic chunks of
index.jsfiles - New
Support tree-shaking of namespace members through default exports
- New
Use cached sourcemaps if available when reading cached files
- Fixed
No longer confuse import names starting with a literal "*" with internal namespace import placeholders
- Fixed
Resolve a situation where a shared module accessed through different dynamic imports was wrongly merged into the first
- Fixed
Do not decode cached sourcemaps again when reusing cached modules (@Ice-Hazymoon, @lukastaegert)
- New
- Fixed
Do not ignore
output.sourcemapFilewhen theoutput.fileoption is not used - Fixed
Change chunk hash when debug IDs are enabled/disabled
- Fixed
Avoid an unnecessary optional dependency on Linux system
- Fixed
Do not publish the build-only @napi-rs/lzma-linux-x64-gnu optional dependency (@christophehurpeau, @lukastaegert)
- Fixed
- Fixed
Make rollup work again on older Xeon processors
- Fixed
184 other lines we could not sort, mostly version bumps
- 4.68.5
Rebuild with the latest content when a watched file changes in quick succession (@privatenumber, @lukastaegert)
- 4.68.5
Keep
thisin JSX member expressions (@luantaraschi, @lukastaegert) - 4.68.5
Migrate Renovate config
- 4.68.4
Deoptimize arguments that known globals expose via their return value
- 4.68.4
Document base URL caveats for emitted file URLs
- 4.68.3
Deoptimize array elements when the length is assigned (@waw666waw666, @lukastaegert)
- 4.68.3
Update minor/patch updates
- 4.68.3
Update minor/patch updates (@renovate[bot], @lukastaegert)
- 4.68.2
Reject Windows drive-relative output file names
- 4.68.1
List --interop modes in CLI help instead of --no-interop (@ZainnQureshii, @lukastaegert)
401 internal lines (docs, tests, tooling) left out.
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.