Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nextjs and vite are not really comparable, they are two different things. NextJS is an application framework, vite is a dev/build tool.

(With that said, I'd love to see Next use Vite, but iirc the webpack dev works for Vercel [Nextjs parent] now)



They seem to be very heavily invested in the long game that is SWC[0][1] which will eventually replace webpack as a whole as well

[0]: https://swc.rs/

[1]: https://nextjs.org/docs/advanced-features/compiler


At this point we know that Webpack is dead. Unless there is a new release that rewrites it in Rust or Go and makes it comparable in speed to Vite/SWC which will never happen. The two different approaches seem to be either going with SWC or Vite. I'm honestly not sure which one will prevail, or if they will both co-exist, splitting the previous market share taken up by Webpack.


But, vite is working on to become the next nextjs, like ssr, isg etc. Nextjs only support react, so it's easier to leverage the react's ability to do these.

When there is ssr, there is runtime, more than just a dev/build tool.


It sounds like you might have some misunderstanding. You can write SSR applications with Vite, but each framework or application is responsible for the rendering. There isn't really such a thing as an SSR runtime in Vite. It will run code on the development server in SSR mode, but all it does is make sure it's picking up code updates and passes it through to Node.js.


> vite is working on to become the next nextjs, like ssr, isg etc

That does not seem to be the truth. They offer a very different product than Next.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: