Removing Dead Code from a Project: A Practical Guide
summary
Practical guide to removing dead code across a JavaScript project: techniques for detecting and eliminating unused entries in package.json, unused modules and imports, and code that still reaches the browser at runtime. Covers tools and processes to find dead artifacts at every layer and how to act on them.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 2:12What is dead code
- 8:53Why dead code appears
- 10:17Duplicate packages
- 16:16Fixing duplicate packages
- 18:44Optimizing builds with Terser
- 22:16Static analysis
- 27:56Dead code in browser
- 31:06Dead code in Node.js
- 37:26Automating dead code checks
- 38:29Dead CSS code
- 41:40Q&A
related talks
38mDeleting Code Is Hard And You Should Do It
20mDeadcode – a Tool to Find and Fix Unused (Dead) Python Code
35mKill your Dead Code with Fire!
01h 22mHow to Delete Code
30mDead Code Shouldn't Exist
01h 01mUseful Tools and Utils for JS Development
05mRehydrating Your Parched Codebase
29mClean Code in Practice
