Automatic optimizeDeps pre-bundling versus opt-out manual control in Vite 5.x
Vite's optimizeDeps feature automatically pre-bundles dependencies at the start of vite dev, relying on an internal heuristic that considers import frequency and estimated module size. The exact thresholds guiding this selection are not publicly documented, resulting in inconsistent pre-bundled module sets across Vite 4.5, 5.0, and 5.2 releases when using th