logoalt Hacker News

erikpukinskis04/27/20254 repliesview on HN

Cool!

Why do you need both Bun and Vite?


Replies

Etheryte04/27/2025

Bun is a runtime, Vite is a build tool. You can mentally swap them out for Node and Webpack to answer your question.

show 1 reply
stevedsimkins04/27/2025

Thanks!!

Vite is specifically used for bundling the frontend and chosen due to the vast ecosystem of plugins that people use for it. Tailwindcss is a great example, others here: https://vite.dev/plugins/

Bun does quite a bit more. In this context it’s used as a runtime and a package manager, and automatically handles the workspaces aspect for shared types. While you might be able to achieve all of bhvr with just Bun I chose to stick with Vite due to the number plugins, tutorials, setups, etc. that all use it. Just keeps things simple and easy!

timeon04/28/2025

JS/TS stack still seems bit complicated.