Skip to content

Tags

Tags

desktop-v0.4.16

Toggle desktop-v0.4.16's commit message
fix(desktop): resolve ESM-only externals in the CJS Electron bundles

electron-store 10 is ESM-only and every dependency is externalized from the CJS main/preload bundles. Under Electron 44 (Node 24) require(esm) returns the namespace with __esModule, but Rollup's default interop treated it as the default export, so the packaged app crashed at startup with 'Store is not a constructor' on every platform in the desktop-v0.4.16 build. Set rollupOptions.output.interop to 'auto' for main and preload; the bundle now reads Store__default.default. Contract test added; pitfall recorded.