~/talk

Dead Code Shouldn’t Exist! How We Removed 28k Lines of Code, One Knip at a Time -Dominik Dorfmeister

Talkat React Paris 2026 · 2026-03-26..03-27· [react, developer-experience]
slides:none on file

Knip scans project files and entry points to build a usage graph and reports unused files, exports and deps; Sentry runs it in CI and production mode to ignore test-only usage and finds leftovers that let the team drop deps like react-sparklines. Over ~6 weeks Knip enables about 28k lines removed (~3% of frontend TS) via many small PRs; workflow changes include a pre-push hook and editor language-server integration, while dynamic imports and webpack require.context need careful whitelisting or extra entries.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:45Sentry design engineering role
  3. 3:13Problem with unused code
  4. 5:42Why dead code persists
  5. 7:08TypeScript limitations on dead code
  6. 9:13Introducing Knip tool
  7. 12:27Live demo with Knip
  8. 15:36Results of code cleanup
  9. 18:04Production mode and tests
  10. 20:31Challenges and workarounds
  11. 25:05Technical limitations
  12. 27:11Statistics and impact
  13. 28:04Closing and call to action
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.