mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-03 17:07:38 +01:00
Last session noticed react-router-dom was a direct dep with zero
imports anywhere in src/ — confirmed: no .ts/.tsx/.js source code
imports it. The only references were:
- jest.config.js moduleNameMapper for the package
- __mocks__/react-router-dom.js (an empty stub: `module.exports = {}`)
- scripts/analysis/webpack-bundle-optimizer.js bundling regex
OrangeCat is a Next.js App Router project (Next 15.5); there is no
need for react-router. The deps were carry-over from an earlier
project state. Notably @types/react-router-dom@5.3.3 was *also*
orphaned-and-wrong: react-router-dom@7 ships its own types, so the
@types package was for a v5 API that hadn't shipped in years.
Removes 6 packages from node_modules (-79 lockfile lines), 1 stub
file, and the unused mock/regex entries. No functional change.
Verified: type-check clean, ESLint clean, jest 648 pass · 1 skipped,
production `next build` 178/178 static pages, npm audit 0 vulns.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>