by tinco · 2y ago · 0 comments
But I was more just asking what's the theoretical limit for this kind of optimization, and at the very least with rust. O(n)?
There's probably trade-offs too. Like do you bother with tree shaking to make your end product smaller, or do you not to make your build performance closer to that optimal read-once write-once lower bound.
Vite also uses esbuild to prebundle dependencies for the dev server, but this is separate from production builds.
For dev, you definitely want subsecond recompiles but prod can take a few minutes.