respira/vite.config.electron.mts
Jan-Henrik Bruhn f80cabc5f2 Add Electron desktop application support with Electron Forge
Major changes:
- Add Electron main process and preload scripts with Web Bluetooth support
- Implement platform abstraction layer for storage and file services
- Create BluetoothDevicePicker component for device selection UI
- Migrate from electron-builder to Electron Forge for packaging
- Configure Vite for dual browser/Electron builds
- Add native file dialogs and persistent storage via electron-store
- Hide menu bar for cleaner desktop app appearance

The app now works in both browser (npm run dev) and Electron (npm run start).
Package with 'npm run package' or create installers with 'npm run make'.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-07 22:39:38 +01:00

11 lines
279 B
TypeScript

import { defineConfig } from 'vite';
// For Electron Forge's Vite plugin, this config is used for main and preload processes
// The renderer config is in vite.config.mts
export default defineConfig({
build: {
rollupOptions: {
external: ['electron'],
},
},
});