mirror of
https://github.com/zadam/trilium.git
synced 2026-09-12 19:50:20 +05:00
The client config points `cacheDir` at a single repo-level directory, so the server, desktop and edit-docs dev servers all shared one optimized-dep cache. Vite discards that cache whenever its `configHash` changes, and the hash differs between the Node-hosted dev server and the Electron-hosted one — so alternating between `pnpm server:start` and `pnpm desktop:start` re-scanned and re-bundled the whole dependency graph on every launch. Measured on the desktop dev app, consecutive launches with nothing else changed: 9055ms to full render with the re-optimization, 5796ms without. The failed commits also leave orphaned `deps_temp_*` directories behind (91 MB when measured), because on Windows the optimizer cannot delete a `deps` directory another dev server still holds open. Keying the cache directory on the app port removes the sharing. The perf analyzer is taught the new layout, and the measure-startup-requests skill picks up the same path change plus two corrections: the eager-load offenders it listed are both fixed now (dialogs go through `LazyDialog`, Inter ships as woff2), and a capture run without `TRILIUM_PASSWORD` silently stops at the login page instead of failing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| icon-packs | ||
| icons | ||
| repo-migration | ||
| translation | ||
| analyze-perf.ts | ||
| build-portable-better-sqlite3.sh | ||
| build-utils.ts | ||
| check-version-consistency.ts | ||
| electron-run-prod.mts | ||
| electron-start.mts | ||
| filter-tsc-output.mts | ||
| generate-openapi.ts | ||
| tsconfig.json | ||
| update-build-info.ts | ||
| update-contributors.ts | ||
| update-flake-electron.spec.ts | ||
| update-flake-electron.ts | ||
| update-nightly-version.ts | ||
| update-version.ts | ||
| utils.mts | ||
| vitest.config.ts | ||
| wipe-node-modules.mts | ||