1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 05:13:29 +00:00
Files
browser/apps/desktop/CLAUDE.md
Mick Letofsky e14c8c6a9c [PM-26337] Create a Claude markdown file (#16676)
* Initial claude markdown with lots of help from the team.
2025-10-03 16:48:01 +02:00

12 lines
569 B
Markdown

# Desktop (Electron) - Critical Rules
- **CRITICAL**: Separate main process vs renderer process contexts
- Main process: Node.js + Electron APIs (files in `/apps/desktop/src/main/`)
- Renderer process: Browser-like environment (Angular app files)
- Use IPC (Inter-Process Communication) for cross-process communication
- **NEVER** import Node.js modules directly in renderer process
- **NEVER** import Angular modules in the main process
- Use preload scripts or IPC to access Node.js functionality
- See `/apps/desktop/src/*/preload.ts` files for patterns