rollup
4.68.5 · 17 Nov 2026MIT170.6M / weekRepositoryHomepagenpmAtom feed
Upgrading rollup From 2.80.0 to 3.0.0
1 release in betweenevery note read
- 44
- changes to make
- 0
- advisories fixed
- 22
- new
- 4
- fixes
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
Security
2 advisories still affect 3.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 3.30.0 clears them.
Release by release
- Breaking
Rollup now requires at least Node 14.18.0 to run (#4548 and #4596)
- Breaking
The browser build has been split into a separate package
@rollup/browser - Breaking
The node build uses the
node:prefix for imports of builtin modules - Breaking
Configuration files are only bundled if either the
--configPluginor the--bundleConfigAsCjsoptions are used. The configuration is bundled to an ES module unless the--bundleConfigAsCjsoption is used. In all other cases, configuration is now loaded using Node's native mechanisms (#4574 and #4621)
- Breaking
32 other lines we could not sort, mostly version bumps
- 3.0.0
this.emitAsset(): usethis.emitFile() - 3.0.0
this.emitChunk(): usethis.emitFile() - 3.0.0
this.getAssetFileName(): usethis.getFileName() - 3.0.0
this.getChunkFileName(): usethis.getFileName() - 3.0.0
this.isExternal(): usethis.resolve() - 3.0.0
this.resolveId(): usethis.resolve() - 3.0.0
Run output plugins last
- 3.0.0
Remove actively deprecated features, show warnings for other deprecated features
- 3.0.0
Convert build scripts to ESM, update dependencies
- 3.0.0
Rework file name patterns when preserving modules
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.