rollup
4.68.5 · 17 Nov 2026MIT170.6M / weekRepositoryHomepagenpmAtom feed
Upgrading rollup From 1.32.1 to 2.0.0
1 release in betweenevery note read
- 17
- changes to make
- 0
- advisories fixed
- 5
- new
- 4
- fixes
Before you upgrade
Tick each one off as you go- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
Security
2 advisories still affect 2.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 2.80.0 clears them.
Release by release
- Breaking
Rollup now requires at least Node 10 to run, or a sufficiently modern browser
- Breaking
The "watch.chokidar" option no longer accepts a
booleanvalue but only an object of parameters that is passed to the bundled Chokidar instance. Chokidar installations by the user will be ignored in favour of the bundled instance - Breaking
Modules that are completely tree-shaken will no longer be listed as part of any chunks in
generateBundle - Breaking
The
experimentalOptimizeChunksandchunkGroupingSizeoptions have been removed
- Breaking
20 other lines we could not sort, mostly version bumps
- 2.0.0
The main ESM entry point is now at
rollup/dist/es/rollup.jsinstead ofrollup/dist/rollup.es.js - 2.0.0
The ESM browser build is at
rollup/dist/es/rollup.browser.jsinstead ofrollup/dist/rollup.browser.es.js - 2.0.0
ongenerate: Use
generateBundleinstead - 2.0.0
onwrite: Use
writeBundleinstead - 2.0.0
transformBundle: Use
renderChunkinstead - 2.0.0
this.emitAsset: usethis.emitFile - 2.0.0
this.emitChunk: usethis.emitFile - 2.0.0
this.getAssetFileName: usethis.getFileName - 2.0.0
this.getChunkFileName: usethis.getFileName - 2.0.0
this.isExternal: usethis.resolve
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.