// ============================================================ // client/main.ts — Entry point for the TypeScript frontend bundle. // // Built by scripts/build-client.mjs into public/dist/main.js, // loaded by index.html via: // // // Strangler-fig migration: this bundle runs ALONGSIDE the legacy // public/js/*.js IIFE files. As each legacy module is migrated, it // moves out of public/js/ into client// and is imported // from this entry point. The legacy script tag is removed from // index.html in the same commit. // // Sacred files (per project memory) — DO NOT migrate without // per-file approval from Daniel: // - public/js/encounters.js (save/idempotency logic) // - public/js/voiceDictation.js, sickVisit.js recording paths // (voice/STT plumbing) // ============================================================ // Migrated modules — each side-effect import installs its window-global // shim for legacy consumers and self-registers any DOM listeners. import './ui-state'; console.log('[client] TypeScript bundle loaded.'); // Marker so anything else that wants to know if the bundle reached // the page can check window.__clientBundle === true. (window as any).__clientBundle = true; export {};