Vite Best Practices Comprehensive performance optimization guide for Vite applications. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation. When to Apply Reference these guidelines when: - Configuring Vite for a new project - Troubleshooting slow dev server startup - Optimizing production bundle size - Debugging HMR issues - Writing or evaluating Vite plugins - Migrating from Webpack or other bundlers Rule Categories by Priority | Priority | Category | Impact | Prefix | |----------|----------|--------|--------| | 1 | Dependency Pre-…