This library is a modernized version of electron-devtools-installer for Electron 36 and newer.
pnpm add electron-extension-installer
or
npm i --save electron-extension-installer
import { installExtension, REACT_DEVELOPER_TOOLS } from "electron-extension-installer";
app.on("ready", async () => {
await installExtension(REACT_DEVELOPER_TOOLS, {
loadExtensionOptions: {
allowFileAccess: true,
},
});
});Built-in extension references include a minimum working version. Cached extensions older than that version are
downloaded again automatically; pass forceDownload: true to refresh an extension regardless of its cached version.
Compatibility override files are pinned to an immutable repository revision and verified with SHA-256 before loading.