3 ms·
Vite bundles your app for prod, but not for dev. While all previous ones, bundled for both dev and prod. This is what makes vite a different generation. And re
by rk06 4y ago
Vite bundles your app for prod, but not for dev.
While all previous ones, bundled for both dev and prod. This is what makes vite a different generation. And results in massive performance boost for dev "build" And HMR
- other_herbert 4y agoReplying to emphasize this comment... For dev, vite _doesn't_ bundle, it sends your site basically unmodified (as individual files) to the browser since most browsers are already capable of running anything you're using anyway... so if you change one file, that one file is patched, not the whole bundle that depended on it.. since there's no bundling, the initial start time is nearly instant... webpack hot reload is NOTHING like this hot reload