Moves the `v2-` de-dup (needed because getPascalCaseRouteName folds the v2/ URL segment into the base) into the unit-tested v2RouteName helper and simplifies the vite.config.ts call site to v2RouteName(raw, nodePath). Removes the duplicated isV2 detection. No behavioural change: /v2/dashboard still resolves to route name v2-dashboard; v1 names unchanged. Addresses the Task 3 code-review Important finding. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
5.3 KiB
5.3 KiB