rollup
4.68.5 · 17 Nov 2026MIT170.6M / weekRepositoryHomepagenpmAtom feed
Upgrading rollup From 3.30.0 to 4.0.0
1 release in betweenevery note read
- 28
- changes to make
- 0
- advisories fixed
- 7
- new
- 4
- fixes
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
2 advisories still affect 4.0.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
Upgrading to 4.59.0 clears them.
Release by release
- Breaking
The minimal required Node version is now 18.0.0
- Breaking
The browser build now relies on a WASM artifact that needs to be provided as well
- Breaking
The NodeJS build now relies on an optional native binary; for unsupported platforms, users can use the
@rollup/wasm-nodepackage that has the same interface as Rollup but relies on WASM artifacts - Breaking
The "with" syntax for import attributes is not yet supported, awaiting support in SWC
- Breaking
4 other lines we could not sort, mostly version bumps
- 4.0.0
Switch parser to SWC and introduce native/WASM code
- 4.0.0
Set the default of skipSelf to true
- 4.0.0
Imporve the performance of generating ast and rollup ast nodes
- 4.0.0
Warn for invalid annotations
1 internal line (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.