You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bitwarden-clients/apps/desktop/CLAUDE.md

569 B

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