sentry-electron-vite-svelte-demo

Sentry Electron Vite Svelte Demo

An example repo to try to get Sentry to work with Svelte, Vite & Electron

sentry-electron-vite-svelte-demo

An Electron application demo with Svelte, TypeScript, Vite and Sentry

Project Setup

Clone repo and create an .env file copied from .env-example using your own Sentry auth token, DSN, org and project name.

This demo was tested on a Mac M1 Max on Mac OS 14.2.1 running Node 20.11.0 in development and production mode. Sentry will not send data from the renderer with this current setup.

Sentry init is called in:

  • src/renderer/src/main.ts
  • src/main/index.ts
  • src/preload/index.ts

Install

$ npm install

Development

$ npm run dev

Build

# For windows
$ npm run build:win

# For macOS
$ npm run build:mac

# For Linux
$ npm run build:linux

Top categories

Loading Svelte Themes