Effective Electron app development toolchain combining Snowpack's fast dev server with esbuild for main process compilation. Current stable version is 0.13.0 (April 2022). Integrates .env variable support, TypeScript config presets, electron-builder config, and HMR for renderer via Snowpack. Differentiator: unified configuration for both main and renderer processes, leveraging Snowpack's plugin ecosystem and esbuild's speed for main process TypeScript builds. Requires Electron as peer dependency. Released under MIT license.
npm install electron-snowpackNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a basic Electron app with Snowpack and esbuild for dev and build, including TypeScript configs and dev server URL.
Ensure React version meets requirement and check Snowpack docs for HMR setup.
Use SNOWPACK_PUBLIC_ prefix for public renderer variables; see Snowpack env vars docs.
Consider migrating to electron-vite or Vite-based alternatives for ongoing support.
Update to >=0.12.2 or manually resolve asset paths using path.join.
Install electron-snowpack: npm install electron-snowpack --save-dev, and ensure extends string is exactly 'electron-snowpack/config/snowpack.js'.
Use win.loadURL('http://localhost:8080') instead of mis-capitalized or missing instance.Set 'main' in package.json to your compiled main entry (e.g., 'build/main/index.js') or use source file with Snowpack build.
Use dynamic import() or set type: 'module' in package.json, and import configs via extends string.