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@electron/rebuild 411 changes
Breaking changes 4
The package's default export has been removed.
The package is now ESM-only, so consumers must use ESM rather than CommonJS.
The required Node.js version is now >=22.12.0.
The unused nodeGypPath field has been removed from Rebuilder.
New APIs and options 3
Adds a jobs option to control node-gyp parallel compilation.
The dist URL can now be set via the ELECTRON_REBUILD_DIST_URL environment variable.
Adds the --platform CLI argument.
Performance 1
The production dependency tree was minimized, reducing the dependencies included for production use.
Fixes and other changes 3
The rebuild marker now includes the target platform.
An explicitly empty --prebuild-tag-prefix is now honored.
Scoped modules now work with onlyModules and the --only CLI option.