mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
code-review pass. dpdm cannot parse Vue SFCs, so the four entry points only reached 133 of the frontend's modules: every `.vue` import was an unresolved dead end and traversal stopped there. Make every `.ts` module an entry instead, which brings the analysed graph to 771 modules. Frozen v1 `src/console` is carved out because it still holds cycles we are not refactoring. Take `ROUTES` and `isAuthExemptRoute` from the leaf module statically, and keep only the router instance lazy. Guard the dynamic import so a failed chunk load still rejects with the original AxiosError. Move the `getDownloadPath` tests next to the module that now owns them. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>