unstale

npm / @electron/rebuild

@electron/rebuild

What changed in @electron/rebuild 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.

4 breaking3 new APIs and options1 performance3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.6 on npm

@electron/rebuild 411 changes

Breaking changes 4

  • The package's default export has been removed.

    4.0.0release notes

  • The package is now ESM-only, so consumers must use ESM rather than CommonJS.

    4.0.0release notes

  • The required Node.js version is now >=22.12.0.

    4.0.0release notes

  • The unused nodeGypPath field has been removed from Rebuilder.

    4.0.0release notes

New APIs and options 3

  • Adds a jobs option to control node-gyp parallel compilation.

    4.2.0release notes

  • The dist URL can now be set via the ELECTRON_REBUILD_DIST_URL environment variable.

    4.1.0release notes

  • Adds the --platform CLI argument.

    4.0.5release notes

Performance 1

  • The production dependency tree was minimized, reducing the dependencies included for production use.

    4.0.4release notes

Fixes and other changes 3

  • The rebuild marker now includes the target platform.

    4.2.1release notes

  • An explicitly empty --prebuild-tag-prefix is now honored.

    4.0.6release notes

  • Scoped modules now work with onlyModules and the --only CLI option.

    4.0.2release notes