Effort: Medium (1-2 hours)
Impact: Smaller bundle, faster installs, better security
Phase: Long-Term
Current State
Some dependencies might be transitive or unused (node_modules: 557MB)
Dependencies to investigate
@eslint/eslintrc - may not be needed with native flat config
- Testing libraries if not writing tests
follow-redirects, node-forge, nth-check - verify if these are direct deps or transitive
Pros
- Smaller node_modules (currently 557MB)
- Faster installs
- Reduced security surface area
- Cleaner package.json
Cons
- Need to verify each isn't needed
Risks
Low - can always add back if needed
Implementation
- Use
npm ls <package> to check if dependency is used
- Use
depcheck tool to find unused dependencies
- Remove candidates one at a time
- Test build and functionality
- Commit changes
Effort: Medium (1-2 hours)
Impact: Smaller bundle, faster installs, better security
Phase: Long-Term
Current State
Some dependencies might be transitive or unused (node_modules: 557MB)
Dependencies to investigate
@eslint/eslintrc- may not be needed with native flat configfollow-redirects,node-forge,nth-check- verify if these are direct deps or transitivePros
Cons
Risks
Low - can always add back if needed
Implementation
npm ls <package>to check if dependency is useddepchecktool to find unused dependencies