Vite vs Webpack
I have heard Theo mention a couple of times that you should nowadays always start a React project with Vite, if you don't go with NextJs...
Since my new job requires me to work with Webpack I had to research it quite a bit, but I'm still a bit lost regarding the Vite vs Webpack battle.
TLDR; I know what each of them does differently and that Webpack offers better configuration... Also, most of the articles I read say that Webpack has greater versatility and "is better suited for advanced code splitting and such requirements".
But my question here is, does there exist a scenario when Webpack can offer better performance than Vite, and if so what is it? What is that "advanced requirement" everyone is talking about? Or is the difference not worth all the extra effort? And after all that, should I try to convice my boss and team to switch to Vite? 😂
0 Replies