Packages

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

Other targets from 3.30.0Latest4.68.5
  1. 3.30.0yours
  2. 4.0.0target
  3. 24 pre

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

Upgrading to 4.59.0 clears them.

Release by release

  1. 4.0.0

    Migration needed5 Oct 20237 new · 4 fixes
    • 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-node package 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

4 other lines we could not sort, mostly version bumps
  • 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

    4.0.0

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.