Performance: Project scaffolding
MEDIUM IMPACT
Project scaffolding affects initial load speed and bundle size by determining the structure and included modules of the NestJS app.
nest new my-app --skip-install // Remove unused modules and providers before installing dependencies // Use minimal modules and lazy load features where possible
nest new my-app // Accept all default modules including unnecessary ones like testing and example modules // Add many unused providers and controllers manually after scaffolding
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Default scaffold with all modules | N/A | N/A | High due to large JS bundle | [X] Bad |
| Minimal scaffold with only needed modules | N/A | N/A | Lower due to smaller JS bundle | [OK] Good |