Skip to content

v1.6.1

Choose a tag to compare

@ianwieds ianwieds released this 10 Jun 09:15
· 6 commits to main since this release

Renderer contextIsolation compatibility

Fixed

  • Renderer webpack target: Changed from electron-renderer to web. With contextIsolation: true (Electron's secure default since v12), the renderer runs in a browser-like sandbox — electron-renderer assumed Node globals that don't exist. Now uses target: 'web' with proper fallbacks.
  • logger-lite.js: Lazy-load electron, path, fs, electron-log inside the main-process code path only. Top-level require('electron') was being bundled into the renderer and crashing on load.
  • mode-helpers.js / app-root.js: Guard require('electron') with typeof require !== 'undefined' so shared cross-context helpers don't crash in the renderer bundle.