rollup
4.68.5 · 17 Nov 2026MIT170.6M / weekRepositoryHomepagenpmAtom feed
Upgrading rollup From 3.7.3 to 3.30.0
65 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking3.10.0
- Deprecated3.17.0
Security
Fixes 2 advisories affecting 3.7.3
- 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
- 3.29.5
Fix a vulnerability in generated code that affects IIFE, UMD and CJS bundles when run in a browser context
Release by release
- New
Throw when the generated bundle contains paths that would leave the output directory
- New
- Security
Fix a vulnerability in generated code that affects IIFE, UMD and CJS bundles when run in a browser context
- Fixed
Fix DOM Clobbering CVE
- Security
- Fixed
Fix static analysis when an exported function uses callbacks
- Fixed
- Fixed
Fix a bug where code was wrongly tree-shaken after mutating function parameters
- Fixed
- Fixed
Export
TreeshakingPresettype - Fixed
Exports
TreeshakingPreset
- Fixed
- Fixed
Fix time measurement of plugin hooks in watch mode
- Fixed
Ensure accessing document.currentScript in import.meta.url returns correct results
- Fixed
perf: Avoid superfluous timer wrappings in watch mode
- Fixed
Access document.currentScript at the top level
- Fixed
- New
Add output.sourcemapFileNames option
- New
Add generic type parameter for
apito Plugin type - New
Added option to name sourcemap files, i.e. a output.sourcemapFileName…
- New
types: Add generic type for plugin api
- Fixed
Ensure mutations of CustomEvent details are tracked
- New
- Fixed
Ensure external files with relative import paths outside the target are rendered correctly
- Fixed
Fix resolution of relative external files outside target directory
- Fixed
48 other lines we could not sort, mostly version bumps
- 3.30.0
Validate bundle stays within output dir
- 3.29.4
Deoptimize all parameters when losing track of a function
- 3.29.3
Fully deoptimize first level path when deoptimizing nested parameter paths
- 3.29.1
re-enbale repl-artefacts workflow for rollup-swc branch
- 3.29.0
Deoptimize custom event detail
- 3.27.2
Revert perf(sourcemap): lazy compute decoded mappings
- 3.26.1
Safe hasOwnProperty call
- 3.23.1
Better workflow caching
- 3.21.7
Properly quit on uncaught exceptions
- 3.21.5
Keep leading comments on consecutive lines
45 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.