Packages

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

Other targets from 1.32.1Clears its 2 advisories2.80.0Latest4.68.5
  1. 1.32.1yours
  2. 2.0.0target
  3. 3 pre

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

Upgrading to 2.80.0 clears them.

Release by release

  1. 2.0.0

    Migration needed6 Mar 20205 new · 4 fixes
    • Breaking

      Rollup now requires at least Node 10 to run, or a sufficiently modern browser

    • Breaking

      The "watch.chokidar" option no longer accepts a boolean value 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 experimentalOptimizeChunks and chunkGroupingSize options have been removed

20 other lines we could not sort, mostly version bumps
  • The main ESM entry point is now at rollup/dist/es/rollup.js instead of rollup/dist/rollup.es.js

    2.0.0
  • The ESM browser build is at rollup/dist/es/rollup.browser.js instead of rollup/dist/rollup.browser.es.js

    2.0.0
  • ongenerate: Use generateBundle instead

    2.0.0
  • onwrite: Use writeBundle instead

    2.0.0
  • transformBundle: Use renderChunk instead

    2.0.0
  • this.emitAsset: use this.emitFile

    2.0.0
  • this.emitChunk: use this.emitFile

    2.0.0
  • this.getAssetFileName: use this.getFileName

    2.0.0
  • this.getChunkFileName: use this.getFileName

    2.0.0
  • this.isExternal: use this.resolve

    2.0.0

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.